]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: obtain file access during backup intent lookup (resend)
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Fri, 28 Sep 2012 17:21:14 +0000 (12:21 -0500)
committerSteve French <smfrench@gmail.com>
Fri, 28 Sep 2012 20:32:28 +0000 (15:32 -0500)
commit651c836a43b5b483c63547263b9c6e32d7fefdfc
tree03530fe0622d19a7d4e8d80e4e17e7681e95dc42
parent9031bdbe933fd2713279f00a726bc9bd6973858e
cifs: obtain file access during backup intent lookup (resend)

Rebased and resending the patch.

Path based queries can fail for lack of access, especially during lookup
during open.
open itself would actually succeed becasue of back up intent bit
but queries (either path or file handle based) do not have a means to
specifiy backup intent bit.
So query the file info during lookup using
 trans2 / findfirst / file_id_full_dir_info
to obtain file info as well as file_id/inode value.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Acked-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/inode.c
fs/cifs/readdir.c
fs/cifs/smb1ops.c