* [PATCH] fs: show frozen status in mountinfo
@ 2017-07-08 23:05 Florian Margaine
0 siblings, 0 replies; only message in thread
From: Florian Margaine @ 2017-07-08 23:05 UTC (permalink / raw)
To: linux-kernel, linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 720 bytes --]
Putting this in the mountinfo makes it non contractual, and purely
available for the sake of helping out an administrator seeing blocking
behavior.
Signed-off-by: Florian Margaine <florian@platform.sh>
---
fs/proc_namespace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index b5713fe..2b8e3dd 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -184,6 +184,8 @@ static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt)
goto out;
if (sb->s_op->show_options)
err = sb->s_op->show_options(m, mnt->mnt_root);
+ if (sb->s_writers.frozen)
+ seq_puts(m, " frozen");
seq_putc(m, '\n');
out:
return err;
--
2.9.4
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-08 23:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-08 23:05 [PATCH] fs: show frozen status in mountinfo Florian Margaine
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).