summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/utils/mount.glusterfs.in
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse/utils/mount.glusterfs.in')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in10
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