summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a43efe531d7..494c894ec90 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -156,7 +156,15 @@ start_glusterfs ()
$cmd_line1;
err=0;
- inode=$(stat -c %i $mount_point 2>/dev/null);
+ case `uname -s` in
+ NetBSD)
+ 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
inode="0";