diff options
author | Gaurav <gaurav@gluster.com> | 2011-02-09 00:39:55 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-10 22:18:11 -0800 |
commit | 6248ead2ab0481a40d91b824fb249e4bc4f943ba (patch) | |
tree | 5d92e89bfd1e5458a39c34aba657be57de0937e2 /xlators/nfs/server/src/nfs.c | |
parent | 2e81c881f036d90323fd07d7df07d881723d7a28 (diff) |
NFS : Fail Nfs init if volume-id not found.
Signed-off-by: Gaurav <gaurav@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2124 (NFS crashes when volume-id option is not given with dynamic-volume option)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2124
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 1ef7cdc70..0760b405d 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -113,13 +113,12 @@ nfs_init_versions (struct nfs_state *nfs, xlator_t *this) } prog = version->init (this); - prog->actorxl = this; - version->program = prog; if (!prog) { ret = -1; goto err; } - + prog->actorxl = this; + version->program = prog; if (nfs->override_portnum) prog->progport = nfs->override_portnum; gf_log (GF_NFS, GF_LOG_DEBUG, "Starting program: %s", |