diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-12-03 12:57:13 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-12-18 03:47:42 +0000 |
commit | 194e4216c8e30612f96f8f3712fdb3f1c96b3a08 (patch) | |
tree | de825272940d753f129b43187837f7f5c3584d69 /glusterfsd | |
parent | 6f6b253deed134c5fee37e1e3d2fd44b18e1db6e (diff) |
[RFC]#ifdef gNFS related code if we are not compiling gNFS
If we are not compiling gNFS (--enable-gnfs is not given in the
./configure script params), there is little point in compiling code
that is related to it.
This patch tries to eliminate it.
My hope (and it's not clear from the code ) is that I did not break
the NFS Ganesha support as well.
Other than that, tried to compile with and without anad it looks sane.
Change-Id: I8d6c98066b9fceab4ec10fc6f5e81ab069e853bd
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index c63e1e2328b..a984a436965 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -1492,10 +1492,12 @@ glusterfs_handle_node_status(rpcsvc_request_t *req) } any = active->first; - if ((cmd & GF_CLI_STATUS_NFS) != 0) - ret = gf_asprintf(&node_name, "%s", "nfs-server"); - else if ((cmd & GF_CLI_STATUS_SHD) != 0) + if ((cmd & GF_CLI_STATUS_SHD) != 0) ret = gf_asprintf(&node_name, "%s", "glustershd"); +#ifdef BUILD_GNFS + else if ((cmd & GF_CLI_STATUS_NFS) != 0) + ret = gf_asprintf(&node_name, "%s", "nfs-server"); +#endif else if ((cmd & GF_CLI_STATUS_QUOTAD) != 0) ret = gf_asprintf(&node_name, "%s", "quotad"); else if ((cmd & GF_CLI_STATUS_BITD) != 0) |