lkml.org 
[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: NFS client won't set GID on file create
From
Date
>>>>> " " == David Rysdam <drysdam@yahoo.com> writes:

> Looking at the NFS client code, I see the uid/gid getting set
> to -1 before being sent to the server. Glancing over the

As you may have guessed, -1 here means 'no value supplied'. Setting
the uid/gid here is a bug on many NFS servers (they refuse to create
the file), hence we leave it to the server to choose.

The fsuid/fsgid will be passed to the server via the RPC credential
scheme, and most (but not all) servers choose to use this for the file
creation.

Cheers,
Trond

Note: In my NFSv3 client patches, it's possible to define
NFSD_BROKEN_UID in fs/nfs/dir.c, to cause the attributes to be set
explicitly in the CREATE call. Because of the afore-mentioned problems
with some servers it is not enabled by default.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.026 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site