diff options
Diffstat (limited to 'xlators/mount/fuse/utils/mount.glusterfs.in')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 251f50e166f..bdb5959ff05 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -130,7 +130,15 @@ start_glusterfs () $cmd_line; - inode=$(stat -c %i $mount_point 2>/dev/null); + case `uname -s` in + NetBSD) + sleep 1 # settle + inode=$(stat -f %i ${mount_point}/ 2>/dev/null); + ;; + Linux) + inode=$(stat -c %i $mount_point 2>/dev/null); + ;; + esac # this is required if the stat returns error if [ -z "$inode" ]; then |