From 86a1ef81527da5b9eb11ba3dc361c1c4ca291ca8 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Wed, 3 Nov 2010 06:35:29 +0000 Subject: nfs: Introduce rpc.register-with-portmap to disable portmap registration For systems that need to run multiple nfs servers, we need to prevent more than one from registering with portmap service. Use this option to turn off portmap registration for Gluster NFS. Portmap registration is on by default. Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 1743 (XenServer is not compatible with GlusterNFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1743 --- xlators/nfs/server/src/nfs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/nfs/server/src') diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index d546ed3fb..3dbb0bc45 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -858,6 +858,13 @@ struct volume_options options[] = { "32-bit inode numbers instead. Disabled by default so " "NFS returns 64-bit inode numbers by default." }, + { .key = {"rpc.register-with-portmap"}, + .type = GF_OPTION_TYPE_BOOL, + .description = "For systems that need to run multiple nfs servers, we" + "need to prevent more than one from registering with " + "portmap service. Use this option to turn off portmap " + "registration for Gluster NFS. On by default" + }, { .key = {NULL} }, }; -- cgit