summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-08-13 15:20:20 +0200
committerKrishnan Parthasarathi <kparthas@redhat.com>2014-08-13 08:30:38 -0700
commit5fe2233a8243160443e9bb438a40b1bcacac4fca (patch)
tree85a55887a64e2b5367be2b2c59676de5c1ac750a /xlators/mgmt
parent250210a36bfd5b5c44ad49ca1c3f6aef148da322 (diff)
NetBSD /dev/fuse detection
NetBSD's FUSE being pure userland implementation, there is no /dev/fuse to open. Test /dev/puffs (kernel fs-in-userland subsystem supporting FUSE) insead. BUG: 764655 Change-Id: Ia65e95c246dc31ea2839cf64d7c851430828542e Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8478 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 8b9b4b1a018..1b2ae63ded8 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -112,7 +112,11 @@ glusterd_is_fuse_available ()
int fd = 0;
+#ifdef __NetBSD__
+ fd = open ("/dev/puffs", O_RDWR);
+#else
fd = open ("/dev/fuse", O_RDWR);
+#endif
if (fd > -1 && !close (fd))
return _gf_true;