[PATCH] fs: show frozen status in mountinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux