From: Florian Margaine <florian@platform.sh>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: [PATCH] fs: show frozen status in mountinfo
Date: Sun, 09 Jul 2017 01:05:34 +0200 [thread overview]
Message-ID: <8737a6a5s1.fsf@platform.sh> (raw)
[-- 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 --]
reply other threads:[~2017-07-08 23:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737a6a5s1.fsf@platform.sh \
--to=florian@platform.sh \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.