lkml.org 
[lkml]   [2017]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs: show frozen status in mountinfo
Date
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-07-09 01:06    [W:0.025 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site