Skip to content

Commit d4a26d3

Browse files
author
Trond Myklebust
committed
Revert "nfs: ignore SB_RDONLY when mounting nfs"
This reverts commit 52cb7f8. Silently ignoring the "ro" and "rw" mount options causes user confusion, and regressions. Reported-by: Alkis Georgopoulos<alkisg@gmail.com> Cc: Li Lingfeng <lilingfeng3@huawei.com> Fixes: 52cb7f8 ("nfs: ignore SB_RDONLY when mounting nfs") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent d216b69 commit d4a26d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <linux/nfslocalio.h>
1414
#include <linux/wait_bit.h>
1515

16-
#define NFS_SB_MASK (SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)
16+
#define NFS_SB_MASK (SB_RDONLY|SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)
1717

1818
extern const struct export_operations nfs_export_ops;
1919

0 commit comments

Comments
 (0)