From: Sachin Prabhu <sprabhu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
gregory.lee.bartholomew-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] cifs: reinstate the forcegid option
Date: Thu, 04 Oct 2012 13:20:19 +0100 [thread overview]
Message-ID: <1349353219.3691.1.camel@localhost> (raw)
In-Reply-To: <1349294556-20656-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On Wed, 2012-10-03 at 16:02 -0400, Jeff Layton wrote:
> Apparently this was lost when we converted to the standard option
> parser.
>
> Cc: Sachin Prabhu <sprabhu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Reported-by: Gregory Lee Bartholomew <gregory.lee.bartholomew-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Reviewed-by: Sachin Prabhu <sprabhu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> fs/cifs/connect.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> index 2fdbe08..5c670b9 100644
> --- a/fs/cifs/connect.c
> +++ b/fs/cifs/connect.c
> @@ -67,6 +67,7 @@ enum {
> /* Mount options that take no arguments */
> Opt_user_xattr, Opt_nouser_xattr,
> Opt_forceuid, Opt_noforceuid,
> + Opt_forcegid, Opt_noforcegid,
> Opt_noblocksend, Opt_noautotune,
> Opt_hard, Opt_soft, Opt_perm, Opt_noperm,
> Opt_mapchars, Opt_nomapchars, Opt_sfu,
> @@ -117,6 +118,8 @@ static const match_table_t cifs_mount_option_tokens = {
> { Opt_nouser_xattr, "nouser_xattr" },
> { Opt_forceuid, "forceuid" },
> { Opt_noforceuid, "noforceuid" },
> + { Opt_forcegid, "forcegid" },
> + { Opt_noforcegid, "noforcegid" },
> { Opt_noblocksend, "noblocksend" },
> { Opt_noautotune, "noautotune" },
> { Opt_hard, "hard" },
> @@ -1195,6 +1198,12 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
> case Opt_noforceuid:
> override_uid = 0;
> break;
> + case Opt_forcegid:
> + override_gid = 1;
> + break;
> + case Opt_noforcegid:
> + override_gid = 0;
> + break;
> case Opt_noblocksend:
> vol->noblocksnd = 1;
> break;
next prev parent reply other threads:[~2012-10-04 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 20:02 [PATCH] cifs: reinstate the forcegid option Jeff Layton
[not found] ` <1349294556-20656-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-04 12:20 ` Sachin Prabhu [this message]
2012-10-04 13:16 ` Suresh Jayaraman
[not found] ` <506D8C16.6070408-IBi9RG/b67k@public.gmane.org>
2012-10-04 14:20 ` Scott Lovenberg
2012-10-04 14:50 ` Sachin Prabhu
2012-10-04 15:41 ` Sachin Prabhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349353219.3691.1.camel@localhost \
--to=sprabhu-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=gregory.lee.bartholomew-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox