From patchwork Mon Aug 3 14:04:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 38906 Received: from lists.samba.org (fn.samba.org [216.83.154.106]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n73E4oPY028557 for ; Mon, 3 Aug 2009 14:04:51 GMT Received: from fn.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id 26998ACFD0; Mon, 3 Aug 2009 08:01:26 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fn.samba.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.8 tests=AWL, BAYES_00, NO_MORE_FUNN, SPF_PASS autolearn=no version=3.2.5 X-Original-To: linux-cifs-client@lists.samba.org Delivered-To: linux-cifs-client@lists.samba.org Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.120]) by lists.samba.org (Postfix) with ESMTP id F2BC3ACFC5 for ; Mon, 3 Aug 2009 08:01:19 -0600 (MDT) Received: from mail.poochiereds.net ([71.70.153.3]) by cdptpa-omta02.mail.rr.com with ESMTP id <20090803140443538.XOFN557@cdptpa-omta02.mail.rr.com>; Mon, 3 Aug 2009 14:04:43 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id D6AC458137; Mon, 3 Aug 2009 10:04:42 -0400 (EDT) From: Jeff Layton To: smfrench@gmail.com Date: Mon, 3 Aug 2009 10:04:42 -0400 Message-Id: <1249308282-2429-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.6.0.6 Cc: linux-cifs-client@lists.samba.org Subject: [linux-cifs-client] [PATCH] cifs: show noforceuid/noforcegid options instead of forceuid/forcegid X-BeenThere: linux-cifs-client@lists.samba.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: The Linux CIFS VFS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org Since forceuid/forcegid is the default, it makes more sense to show the "no" version of these options. Signed-off-by: Jeff Layton --- fs/cifs/cifsfs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 44f3050..2e24178 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -374,12 +374,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) seq_printf(s, ",domain=%s", tcon->ses->domainName); seq_printf(s, ",uid=%d", cifs_sb->mnt_uid); - if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID) - seq_printf(s, ",forceuid"); + if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID)) + seq_printf(s, ",noforceuid"); seq_printf(s, ",gid=%d", cifs_sb->mnt_gid); - if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID) - seq_printf(s, ",forcegid"); + if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID)) + seq_printf(s, ",noforcegid"); cifs_show_address(s, tcon->ses->server);