aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>2012-05-15 11:19:16 -0400
committerPavel Shilovsky <piastry@etersoft.ru>2012-05-17 05:07:49 -0400
commit2608bee744a92d60d15ff4e6e0b913d8b406aedd (patch)
tree3104d96b86e25c931b2bee199eb67842327aeaa1 /fs/cifs/cifsproto.h
parent7f92447aa7be605fd80d9f248efe0b8ac9379f11 (diff)
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>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index eeb789d8e855..0a3fa960b84d 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -192,11 +192,13 @@ extern int CIFSTCon(unsigned int xid, struct cifs_ses *ses,
192 192
193extern int CIFSFindFirst(const int xid, struct cifs_tcon *tcon, 193extern int CIFSFindFirst(const int xid, struct cifs_tcon *tcon,
194 const char *searchName, const struct nls_table *nls_codepage, 194 const char *searchName, const struct nls_table *nls_codepage,
195 __u16 *searchHandle, struct cifs_search_info *psrch_inf, 195 __u16 *searchHandle, __u16 search_flags,
196 struct cifs_search_info *psrch_inf,
196 int map, const char dirsep); 197 int map, const char dirsep);
197 198
198extern int CIFSFindNext(const int xid, struct cifs_tcon *tcon, 199extern int CIFSFindNext(const int xid, struct cifs_tcon *tcon,
199 __u16 searchHandle, struct cifs_search_info *psrch_inf); 200 __u16 searchHandle, __u16 search_flags,
201 struct cifs_search_info *psrch_inf);
200 202
201extern int CIFSFindClose(const int, struct cifs_tcon *tcon, 203extern int CIFSFindClose(const int, struct cifs_tcon *tcon,
202 const __u16 search_handle); 204 const __u16 search_handle);