diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-06-15 09:55:28 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-07-09 05:40:34 -0700 |
commit | ca297bc9ba096c64e182872692981a1d7ee250fa (patch) | |
tree | 77128eef313433aef9c3395eff06c6de3f3ef999 /xlators/mount | |
parent | 6ee9d105695e4fd8ea86d8c173b234e2df12eb51 (diff) |
stat(1) flag to specify format is not portable
This is a backport of Change-Id: Iae3c40b03118078530c29d14d5f7180c36361c16
BUG: 764655
Change-Id: Ic4e7adbda6b53b248aa93cd20a045cb885fa818e
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.com/3579
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mount')
-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 |