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

Jeff Layton <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
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(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.