From: Andrey Vagin Subject: [PATCH] fs: show locked and lock_ro options in mountinfo Date: Fri, 27 Mar 2015 23:39:34 +0300 Message-ID: <1427488774-5077-1-git-send-email-avagin@openvz.org> Cc: linux-kernel@vger.kernel.org, Andrey Vagin , Cyrill Gorcunov , Pavel Emelyanov , "Eric W. Biederman" , Alexander Viro To: linux-fsdevel@vger.kernel.org Return-path: Received: from mailhub.sw.ru ([195.214.232.25]:38884 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbbC0Ujs (ORCPT ); Fri, 27 Mar 2015 16:39:48 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: I don't see any reasons to hide them. This information can help to understand errors. And this information is required for correct checkpoint/restore of mount namespaces. Cc: Cyrill Gorcunov Cc: Pavel Emelyanov Cc: Eric W. Biederman Cc: Alexander Viro Signed-off-by: Andrey Vagin --- fs/proc_namespace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 8db932d..ad86134 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c @@ -66,6 +66,8 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) { MNT_NOATIME, ",noatime" }, { MNT_NODIRATIME, ",nodiratime" }, { MNT_RELATIME, ",relatime" }, + { MNT_LOCKED, ",locked" }, + { MNT_LOCK_READONLY, ",lock_ro"}, { 0, NULL } }; const struct proc_fs_info *fs_infop; -- 2.1.0