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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 10 Jun 2012 13:41:32 +0000 (14:41 +0100)
commit90f560e0729cc5483324673cb13522b8abcd8ca5
tree96eff234ecaa0be7e8ab268cd154d76d9e952fba
parent6f6cc143f453b606839aac415e7b30fada258c08
cifs: Include backup intent search flags during searches {try #2)

commit 2608bee744a92d60d15ff4e6e0b913d8b406aedd upstream.

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.
---------

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/readdir.c