diff options
| author | Yaniv Kaul <ykaul@redhat.com> | 2020-01-22 15:50:27 +0200 |
|---|---|---|
| committer | Mohit Agrawal <moagrawal@redhat.com> | 2020-01-23 16:05:13 +0530 |
| commit | be673d9d093d977f4f38f2dba3f422c796db37b7 (patch) | |
| tree | 8204de377e1006d4c34d590e8427652fd1622f5c /xlators/mgmt/glusterd/src/glusterd-quota.c | |
| parent | f6421dff22a6ddaf14134f6894deae219948c89d (diff) | |
multiple files: ensure nfs_svc functions are available
When gNFS is disabled in build time, we have to ensure
taht the .stop(), .start() and other functions of the nfs_svc
are not called, otherwise we'd crash.
In addition, #ifdef more code that is gNFS related.
updates: bz#1793995
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Change-Id: I5081f1670c04ca306aeaab7208829b0f2f149a42
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-quota.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-quota.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c index 5985ab2de55..cb2d9c7c384 100644 --- a/xlators/mgmt/glusterd/src/glusterd-quota.c +++ b/xlators/mgmt/glusterd/src/glusterd-quota.c @@ -1808,10 +1808,12 @@ glusterd_op_quota(dict_t *dict, char **op_errstr, dict_t *rsp_dict) goto out; } +#if BUILD_GNFS if (GLUSTERD_STATUS_STARTED == volinfo->status) { if (priv->op_version == GD_OP_VERSION_MIN) (void)priv->nfs_svc.manager(&(priv->nfs_svc), NULL, 0); } +#endif if (rsp_dict && start_crawl == _gf_true) glusterd_quota_initiate_fs_crawl(priv, volinfo, type); |
