Commit d4a26d34 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

Revert "nfs: ignore SB_RDONLY when mounting nfs"



This reverts commit 52cb7f8f.

Silently ignoring the "ro" and "rw" mount options causes user confusion,
and regressions.

Reported-by: default avatarAlkis <Georgopoulos&lt;alkisg@gmail.com>
Cc: Li Lingfeng <lilingfeng3@huawei.com>
Fixes: 52cb7f8f ("nfs: ignore SB_RDONLY when mounting nfs")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d216b698
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
#include <linux/nfslocalio.h>
#include <linux/wait_bit.h>

#define NFS_SB_MASK (SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)
#define NFS_SB_MASK (SB_RDONLY|SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)

extern const struct export_operations nfs_export_ops;