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)
commit2608bee744a92d60d15ff4e6e0b913d8b406aedd
tree3104d96b86e25c931b2bee199eb67842327aeaa1
parent7f92447aa7be605fd80d9f248efe0b8ac9379f11
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