diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-02-17 18:12:33 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-17 23:36:03 +0300 |
commit | 7ae017c7322e2b12472033e65a48aa25cde2fb22 (patch) | |
tree | 261d74f9a03b2ccdc789c5f200f2aa897197c572 /fs/nfs/super.c | |
parent | 6c17260ca4aeb17d11461647c6b7eefcc2602acc (diff) | |
download | linux-7ae017c7322e2b12472033e65a48aa25cde2fb22.tar.xz |
NFS: Support the '-owrite=' option in /proc/self/mounts and mountinfo
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 4034102010f0..bd22c9338600 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -511,6 +511,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, seq_puts(m, ",local_lock=flock"); else seq_puts(m, ",local_lock=posix"); + + if (nfss->flags & NFS_MOUNT_WRITE_EAGER) { + if (nfss->flags & NFS_MOUNT_WRITE_WAIT) + seq_puts(m, ",write=wait"); + else + seq_puts(m, ",write=eager"); + } } /* |