From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com ([209.85.128.172]:35902 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751659AbdGHXFv (ORCPT ); Sat, 8 Jul 2017 19:05:51 -0400 Received: by mail-wr0-f172.google.com with SMTP id c11so91608889wrc.3 for ; Sat, 08 Jul 2017 16:05:50 -0700 (PDT) From: Florian Margaine 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 Message-ID: <8737a6a5s1.fsf@platform.sh> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =2D-- 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 =2D-- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c @@ -184,6 +184,8 @@ static int show_mountinfo(struct seq_file *m, struct vf= smount *mnt) goto out; if (sb->s_op->show_options) err =3D 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; =2D-=20 2.9.4 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZYWU+AAoJEIQ/bXU9lJcqFb8IAK06dX6dFDZcH3ewKH3kLTTn dyqI8oZHg3EtVsKrSJhv4xBYlhIkVkv5ozFrjBlRPJPY/bdKsdYi5JnIxVFVGTke y326IwrOPeUzh9cvMyyNpBkxI/0Jzb8/HmtwqTmJgzVpUts+7Z/5A0ZptqgCvvjS YgdD5S9a7qxgU+DclGjiPyPAUuJACj192XxHuukJKf7cbYI1tUEGOd2R2yzRxh9A I9hGnXyKs0jL2bTw0K82jFzGPyEIJrDICVwA49mkxIhvxq9o7SRKtvPpEb36o50g HdOTCb1CE+ZtOG/nTIG6oQruptYUKqsT5wSazeuhQBlgnYv17U9/l3ICKrF+JCE= =xpte -----END PGP SIGNATURE----- --=-=-=--