]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Include backup intent search flags during searches {try #2)
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Tue, 15 May 2012 15:19:16 +0000 (10:19 -0500)
committerPavel Shilovsky <piastry@etersoft.ru>
Thu, 17 May 2012 09:07:49 +0000 (13:07 +0400)
commit3dbd6738c72d1bf0f30f681141b2fe17b81c565c
tree3104d96b86e25c931b2bee199eb67842327aeaa1
parent9f362fc37e31ddb0afdf260b019d713d3ffcdedf
cifs: Include backup intent search flags during searches {try #2)

As observed and suggested by Tushar Gosavi...

---------
readdir calls these function to send TRANS2_FIND_FIRST and
TRANS2_FIND_NEXT command to the server. The current cifs module is
not specifying CIFS_SEARCH_BACKUP_SEARCH flag while sending these
command when backupuid/backupgid is specified. This can be resolved
by specifying CIFS_SEARCH_BACKUP_SEARCH flag.
---------

Cc: <stable@kernel.org>
Reported-and-Tested-by: Tushar Gosavi <tugosavi@in.ibm.com>
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/readdir.c