From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752873AbbC0Ujy (ORCPT ); Fri, 27 Mar 2015 16:39:54 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:11089 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbbC0Ujx (ORCPT ); Fri, 27 Mar 2015 16:39:53 -0400 From: Andrey Vagin To: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Andrey Vagin , Cyrill Gorcunov , Pavel Emelyanov , "Eric W. Biederman" , Alexander Viro 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> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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