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

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

by Jeff Layton-2 :: Rate this Message:

Reply to Author | View in Thread

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(-)

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

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