]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/cifs/cifsfs.c
[CIFS] UID/GID override on CIFS mounts to Samba
authorSteve French <sfrench@us.ibm.com>
Mon, 30 Apr 2007 20:13:06 +0000 (20:13 +0000)
committerSteve French <sfrench@us.ibm.com>
Mon, 30 Apr 2007 20:13:06 +0000 (20:13 +0000)
commit4523cc3044d1bc7fcf3d7fee75d62bc76b8e1abb
tree31c2b6c0a81f14ec812d09586eb8ef5a586743cb
parent984acfe1cfb613257a15f30b3cf60ae7e4ed8f06
[CIFS] UID/GID override on CIFS mounts to Samba

When CIFS Unix Extensions are negotiated we get the Unix uid and gid
owners of the file from the server (on the Unix Query Path Info
levels), but if the server's uids don't match the client uid's users
were having to disable the Unix Extensions (which turned off features
they still wanted).   The changeset patch allows users to override uid
and/or gid for file/directory owner with a default uid and/or gid
specified at mount (as is often done when mounting from Linux cifs
client to Windows server).  This changeset also displays the uid
and gid used by default in /proc/mounts (if applicable).

Also cleans up code by adding some of the missing spaces after
"if" keywords per-kernel style guidelines (as suggested by Randy Dunlap
when he reviewed the patch).

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/README
fs/cifs/TODO
fs/cifs/cifs_fs_sb.h
fs/cifs/cifsfs.c
fs/cifs/connect.c
fs/cifs/inode.c
fs/cifs/readdir.c