From 7313b22f10fafe7773a15d8306496d1d56ef5f81 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 30 Mar 2012 15:58:43 +0200 Subject: NetBSD build fixes Signed-off-by: Emmanuel Dreyfus Change-Id: I8f9aabeadd2f842521a82e59594115bd80155d68 BUG: 2923 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.com/3053 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/mount/fuse/src/fuse-helpers.c | 3 +++ xlators/mount/fuse/utils/mount_glusterfs.in | 3 ++- xlators/storage/posix/src/posix-handle.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index fbff1e39a..feec23998 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -24,6 +24,9 @@ #include #endif +#ifndef GF_REQUEST_MAXGROUPS +#define GF_REQUEST_MAXGROUPS 16 +#endif /* GF_REQUEST_MAXGROUPS */ static void fuse_resolve_wipe (fuse_resolve_t *resolve) diff --git a/xlators/mount/fuse/utils/mount_glusterfs.in b/xlators/mount/fuse/utils/mount_glusterfs.in index 3d4d28620..b12b4e04e 100755 --- a/xlators/mount/fuse/utils/mount_glusterfs.in +++ b/xlators/mount/fuse/utils/mount_glusterfs.in @@ -85,7 +85,7 @@ start_glusterfs () --volfile-server-transport=$transport"); else cmd_line=$(echo "$cmd_line \ ---volfile-server=$server_ip \ +--volfile-server=$server_ip"); fi else cmd_line=$(echo "$cmd_line --volfile=$volfile_loc"); @@ -173,6 +173,7 @@ main () [ -r "$volfile_loc" ] || { server_ip=$(echo "$volfile_loc" | sed -n 's/\([a-zA-Z0-9:.\-]*\):.*/\1/p'); + volume_id=$(echo "$volfile_loc" | sed -n 's/[a-zA-Z0-9:.\-]*:\(.*\)/\1/p'); volfile_loc=""; } # following line is product of love towards sed diff --git a/xlators/storage/posix/src/posix-handle.c b/xlators/storage/posix/src/posix-handle.c index 9b6df445e..38b28edc3 100644 --- a/xlators/storage/posix/src/posix-handle.c +++ b/xlators/storage/posix/src/posix-handle.c @@ -27,7 +27,9 @@ #include #include #include +#ifdef GF_LINUX_HOST_OS #include +#endif #include "posix-handle.h" #include "posix.h" -- cgit