From patchwork Thu May 31 03:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10440233 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE855602BC for ; Thu, 31 May 2018 03:56:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCEB92917C for ; Thu, 31 May 2018 03:56:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D082A294D9; Thu, 31 May 2018 03:56:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E2A12917C for ; Thu, 31 May 2018 03:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932718AbeEaD4e (ORCPT ); Wed, 30 May 2018 23:56:34 -0400 Received: from mout.gmx.net ([212.227.15.15]:35351 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932696AbeEaD4e (ORCPT ); Wed, 30 May 2018 23:56:34 -0400 Received: from localhost.localdomain ([122.224.77.194]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0LqylH-1g181Z3SLb-00eZ09; Thu, 31 May 2018 05:56:27 +0200 From: Chengguang Xu To: ceph-devel@vger.kernel.org Cc: zyan@redhat.com, idryomov@gmail.com, Chengguang Xu Subject: [PATCH] ceph: show more mount options if the value is different with default Date: Thu, 31 May 2018 11:56:04 +0800 Message-Id: <20180531035604.3066-1-cgxu519@gmx.com> X-Mailer: git-send-email 2.17.0 X-Provags-ID: V03:K1:GtfGI0LZup5izx9/ijhth2mf+mzvwyWqLVj0G73FVAqKaD4ztvR cmaDxwj6mZ3zHoUEWHmbWkQ2OTFRyhPTEDnc6Zgd2hlOAWP57ZOEcxZrlWP1tbIkjMl1akf TSicrhrK+JBIcKzCHlnSWHZLEzN7EnOMHWkfmOWC55oOzPsKAEZ0k3Z2eY/PCewMUx09w6p qn9WJDe2hsQ7t+UiZbXZQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:S0yKF5fuGIA=:zBJMg9aWuR1vBiqLr3z6tO xLQDgHcPjbZI2ZzKo0heiWs8CK9ed+cILanKck2oXKbPPeID66McnaDOVX+8m1mk/GF66Kc82 9P8dxKuHjuH8Tt9ybA8QzJIMNnY0usyaO0uQ1E4hzxsth6OPl6sFmU12Ss2lMSMQfU9A5O40u ZfWZQFbzGvOFqReoFHV5LIeW1VuAloAKGsT/EN/yUatT8T9OWs1Dln8cRxkcaet7dJQUB6j85 u2nRX0Vpnc9qw+QBAPxxepyYJgmm5x86y4Fd0bkfZcOX14Z7egvgVclk9Wb/KGiIA0hZ693lF OMG7mCO7Pu85HO900DP/ypyFLQTHni3FVl0mjnMu8E8/lZSv7N4ZeSr8bfAZvrqERSL02diLM dGTapMYzSc8FYEDTZRFNGxGF76yvSzznpDxMPxta4KQgbfmaOaeApOe3cgQfFfpTcyz3/2W0/ 1P7c7TYZRgNN5OvdkkRM8HRUGOLovP7u5MgLinAcNWXzmRZQdqdk64kjuKqd27/+NWWLXo4gt 1+0W5WppAL1sRSWrhwvIGxyzHc1FsNz+Daa2L1phgZF9PBpOUAxJV4tENhwot0fut7h1ahdf7 M/JHEfRKkOTE6rl3gVzbvQ8D23U6oUPaTUkV2zhbKAfWSnn9btIx3JE+BFltG11X4k8sL6RKc c+iTO3e3MwMFfcGz/pva3/2bHa2SRdXi7qoQ0jSO3jg+XW7HTdokiwdtcTYvNZ8RAWf1IiZpV fidzSzEWLFLsGW0aS+RMchd7esCyG7r/SbNdbvIl4j6W7vW32knnWRjIT2A= Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP fixes included in this patch: - add showing mount option 'norequire_active_mds' - add showing mount option 'ino32' - only show wsize if the value is different with default Signed-off-by: Chengguang Xu --- fs/ceph/super.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/ceph/super.c b/fs/ceph/super.c index b33082e6878f..8e3f69b6a78b 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -541,6 +541,10 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root) seq_puts(m, ",nopoolperm"); if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF) seq_puts(m, ",noquotadf"); + if (fsopt->flags & CEPH_MOUNT_OPT_MOUNTWAIT) + seq_puts(m, ",norequire_active_mds"); + if (fsopt->flags & CEPH_MOUNT_OPT_INO32) + seq_puts(m, ",ino32"); #ifdef CONFIG_CEPH_FS_POSIX_ACL if (fsopt->sb_flags & SB_POSIXACL) @@ -551,7 +555,7 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root) if (fsopt->mds_namespace) seq_show_option(m, "mds_namespace", fsopt->mds_namespace); - if (fsopt->wsize) + if (fsopt->wsize != CEPH_MAX_WRITE_SIZE) seq_printf(m, ",wsize=%d", fsopt->wsize); if (fsopt->rsize != CEPH_MAX_READ_SIZE) seq_printf(m, ",rsize=%d", fsopt->rsize);