From: Jeff Layton Subject: Re: [PATCH] cifs: reinstate original behavior when uid=/gid= options are specified Date: Fri, 31 Jul 2009 17:11:04 -0400 Message-ID: <20090731171104.33dbc30c@tlielax.poochiereds.net> References: <1249037742-7862-1-git-send-email-jlayton@redhat.com> <4a4634330907311226g409e4098s83059caf8db4f03b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linux-cifs-client@lists.samba.org, linux-kernel@vger.kernel.org To: Shirish Pargaonkar Return-path: In-Reply-To: <4a4634330907311226g409e4098s83059caf8db4f03b@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 31 Jul 2009 14:26:15 -0500 Shirish Pargaonkar 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