From 44e68cbf833cc176d589780d47ffdbe5b4c3ab7c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 4 Feb 2011 02:04:08 +0000 Subject: nfs: Set volume started after root lookup succeeds Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 2345 (Taking distribute brick down returns 10006 error on mount command) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2345 --- xlators/nfs/server/src/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/nfs') diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index bd53990b4..1ef7cdc70 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -235,6 +235,7 @@ nfs_start_subvol_lookup_cbk (call_frame_t *frame, void *cookie, goto err; } + nfs_subvolume_set_started (this->private, ((xlator_t *)cookie)); gf_log (GF_NFS, GF_LOG_TRACE, "Started %s", ((xlator_t *)cookie)->name); err: return 0; @@ -258,7 +259,6 @@ nfs_startup_subvolume (xlator_t *nfsx, xlator_t *xl) goto err; } - nfs_subvolume_set_started (nfsx->private, xl); ret = nfs_inode_loc_fill (xl->itable->root, &rootloc); if (ret == -1) { gf_log (GF_NFS, GF_LOG_CRITICAL, "Failed to init root loc"); -- cgit