[linux-cifs-client] [PATCH] cifs: reinstate original behavior when uid=/gid= options are specified

Jeff Layton jlayton at redhat.com
Fri Jul 31 15:11:04 MDT 2009


On Fri, 31 Jul 2009 14:26:15 -0500
Shirish Pargaonkar <shirishpargaonkar at gmail.com> wrote:

> Should override_uid  and override_gid be initialized to 1 so that if
> uid and/or gid
> are specified and none of the options, either forceuid/gid and or
> noforceuid/gid are
> specified, the vol-> override defaults to 1 (i.e. forceuid/gid)?
> 

No, I'm using -1 as an indicator of "uninitialized". It's still
considered "true" when cast to a bool (which is what vol->override_*
actually are). That's how I can tell if someone specified forceuid with
no uid= option.
-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list