diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2011-02-04 02:04:08 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-04 11:21:25 -0800 |
commit | 44e68cbf833cc176d589780d47ffdbe5b4c3ab7c (patch) | |
tree | bc19e28fb9c884407343e66e24123c4e8d93fad6 /xlators/nfs/server/src | |
parent | a139e43f484d1b434c9120f9fb99bf5ff33fb51d (diff) |
nfs: Set volume started after root lookup succeeds
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index bd53990b4b5..1ef7cdc70a4 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"); |