linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: show locked and lock_ro options in mountinfo
@ 2015-03-27 20:39 Andrey Vagin
  2015-03-27 21:42 ` Richard Weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Vagin @ 2015-03-27 20:39 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: linux-kernel, Andrey Vagin, Cyrill Gorcunov, Pavel Emelyanov,
	Eric W. Biederman, Alexander Viro

I don't see any reasons to hide them. This information can help to
understand errors.

And this information is required for correct checkpoint/restore of mount
namespaces.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
---
 fs/proc_namespace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index 8db932d..ad86134 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -66,6 +66,8 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
 		{ MNT_NOATIME, ",noatime" },
 		{ MNT_NODIRATIME, ",nodiratime" },
 		{ MNT_RELATIME, ",relatime" },
+		{ MNT_LOCKED, ",locked" },
+		{ MNT_LOCK_READONLY, ",lock_ro"},
 		{ 0, NULL }
 	};
 	const struct proc_fs_info *fs_infop;
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-31 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 20:39 [PATCH] fs: show locked and lock_ro options in mountinfo Andrey Vagin
2015-03-27 21:42 ` Richard Weinberger
2015-03-27 22:35   ` Andrey Wagin
2015-03-27 22:47     ` Richard Weinberger
2015-03-31 15:15       ` Andrey Wagin
2015-03-31 21:29         ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).