summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index 1edc2ac4429..64bd08a3fc7 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -239,7 +239,12 @@ nfs3_errno_to_nfsstat3 (int errnum)
break;
case ENOTCONN:
- stat = NFS3ERR_IO;
+ /* If connections to bricks cannot be established,
+ * the filesystem is effectively in read-only mode
+ * to protect data. E.g., when all bricks in a subvolume
+ * crash.
+ */
+ stat = NFS3ERR_ROFS;
break;
case EDQUOT: