From: Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao Subject: [PATCH 17/17] fsfreeze: export freeze_count through mountinfo Date: Mon, 07 Jan 2013 20:44:43 +0900 Message-ID: <1357559083.8183.27.camel@nexus.lab.ntt.co.jp> References: <1357557492.8183.1.camel@nexus.lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Josef Bacik , Eric Sandeen , Dave Chinner , Christoph Hellwig , Jan Kara , Luiz Capitulino , linux-fsdevel@vger.kernel.org To: Al Viro Return-path: Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]:54555 "EHLO tama500.ecl.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753638Ab3AGLpe (ORCPT ); Mon, 7 Jan 2013 06:45:34 -0500 In-Reply-To: <1357557492.8183.1.camel@nexus.lab.ntt.co.jp> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Export freeze_count through mountinfo so that we have a way to figure out the current freeze state from userspace. Cc: linux-fsdevel@vger.kernel.org Cc: Josef Bacik Cc: Eric Sandeen Cc: Christoph Hellwig Cc: Dave Chinner Cc: Jan Kara Cc: Luiz Capitulino Signed-off-by: Fernando Luis Vazquez Cao --- diff -urNp linux-3.8-rc1-orig/fs/proc_namespace.c linux-3.8-rc1/fs/proc_namespace.c --- linux-3.8-rc1-orig/fs/proc_namespace.c 2012-12-11 12:30:57.000000000 +0900 +++ linux-3.8-rc1/fs/proc_namespace.c 2012-12-25 16:58:27.292018000 +0900 @@ -158,6 +158,8 @@ static int show_mountinfo(struct seq_fil } if (IS_MNT_UNBINDABLE(r)) seq_puts(m, " unbindable"); + if (sb->s_op->freeze_fs) + seq_printf(m, " freeze_count:%i", sb->s_freeze_count); /* Filesystem specific data */ seq_puts(m, " - ");