From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sachin Prabhu Subject: Re: [PATCH] cifs: reinstate the forcegid option Date: Thu, 04 Oct 2012 13:20:19 +0100 Message-ID: <1349353219.3691.1.camel@localhost> References: <1349294556-20656-1-git-send-email-jlayton@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, gregory.lee.bartholomew-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jeff Layton Return-path: In-Reply-To: <1349294556-20656-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: 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 > Reported-by: Gregory Lee Bartholomew > Signed-off-by: Jeff Layton Reviewed-by: Sachin Prabhu > --- > 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;