Skip to contentSkip to conversation

NFS: Support the '-owrite=' option in /proc/self/mounts and mountinfo

PATCH New [email protected] 1 participant 1 message Feb 17, 2021

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 NFS: Support the '-owrite=' option in /proc/self/mounts and mountinfo

From: Trond Myklebust <[email protected]>

---
 fs/nfs/super.c | 7 +++++++
 1 file changed, 7 insertions(+)
fs/nfs/super.c +7 -0
index 4034102010f0..bd22c9338600 100644
@@ -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");
+	}
 }
 
 /*
Signature · 1 line
2.29.2