[linux-cifs-client] [PATCH 0/3] cifs: add a SET_FILE_INFO variant that uses FILE_UNIX_BASIC_INFO infolevel

Jeff Layton jlayton at redhat.com
Thu Jul 2 15:31:28 GMT 2009


Jeremy and Kukks pinged me on IRC last night about this problem:

https://bugzilla.samba.org/show_bug.cgi?id=6520

...apparently it was a samba bug, but Jeremy pointed out that CIFS
should really be using SET_FILE_INFO rather than SET_PATH_INFO when it
has an open filehandle.

This set adds a new SET_FILE_INFO variant that uses a
FILE_UNIX_BASIC_INFO infolevel and changes cifs_setattr_unix to use it.
It's a pretty straightforward set, but has only been lightly tested so
far.

This is probably 2.6.32 material.

Jeff Layton (3):
  cifs: rename CIFSSMBUnixSetInfo to CIFSSMBUnixSetPathInfo
  cifs: make a separate function for filling out FILE_UNIX_BASIC_INFO
  cifs: add and use CIFSSMBUnixSetFileInfo for setattr calls

 fs/cifs/cifsproto.h |    6 ++-
 fs/cifs/cifssmb.c   |  143 ++++++++++++++++++++++++++++++++++++++------------
 fs/cifs/dir.c       |   15 +++---
 fs/cifs/file.c      |    6 +-
 fs/cifs/inode.c     |   25 ++++++---
 5 files changed, 141 insertions(+), 54 deletions(-)



More information about the linux-cifs-client mailing list