From 6248ead2ab0481a40d91b824fb249e4bc4f943ba Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 9 Feb 2011 00:39:55 +0000 Subject: NFS : Fail Nfs init if volume-id not found. Signed-off-by: Gaurav Signed-off-by: Anand V. Avati 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 --- xlators/nfs/server/src/nfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 1ef7cdc70a4..0760b405df5 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", -- cgit