Skip to contentSkip to conversation

fs: show frozen status in mountinfo

PATCH New Florian Margaine 1 participant 1 message Jul 8, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: show frozen status in mountinfo

Putting this in the mountinfo makes it non contractual, and purely available for the sake of helping out an administrator seeing blocking behavior.

---
 fs/proc_namespace.c | 2 ++
 1 file changed, 2 insertions(+)
fs/proc_namespace.c +2 -0
index b5713fe..2b8e3dd 100644
@@ -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;
Signature · 1 line
2.9.4