summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-common.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-10-04 10:06:07 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 09:26:00 -0700
commit8c6e27cdaf895e3031c3256efb9472a6c0bf61f3 (patch)
tree6e6e0185bac68f10a1edcb3926eca90cfdc7baa3 /xlators/nfs/server/src/nfs-common.h
parent64609b65c2ffc34577b342dab12595b13a52d8a2 (diff)
nfs,nfs3: Disable subvolume on ENOTCONN
..so that nfs does not return an error to the client, instead the subvolume gets disabled till it comes back up again. The client is expected to keep retransmitting requests in the mean time. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1724 (kernel untar fails during add-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1724
Diffstat (limited to 'xlators/nfs/server/src/nfs-common.h')
-rw-r--r--xlators/nfs/server/src/nfs-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs-common.h b/xlators/nfs/server/src/nfs-common.h
index 0054910c3be..b506e88b5ab 100644
--- a/xlators/nfs/server/src/nfs-common.h
+++ b/xlators/nfs/server/src/nfs-common.h
@@ -80,4 +80,7 @@ nfs_root_loc_fill (inode_table_t *itable, loc_t *loc);
extern int
is_nfs_subvolume_disabled (struct nfs_state *nfs, xlator_t *xl);
+
+extern int
+nfs_subvolume_lookup_again_later (struct nfs_state *nfs, xlator_t *xl);
#endif