diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2012-09-28 12:21:14 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-28 15:32:28 -0500 |
commit | c052e2b423f3eabe9f3f32e60744afa5cf26f6b9 (patch) | |
tree | 03530fe0622d19a7d4e8d80e4e17e7681e95dc42 /fs/cifs/readdir.c | |
parent | f065fd099fc475333fc7a55677a7f64764445d55 (diff) |
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>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index b0f4a428398..f9b5d3d6cf3 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c @@ -151,7 +151,7 @@ cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb) } } -static void +void cifs_dir_info_to_fattr(struct cifs_fattr *fattr, FILE_DIRECTORY_INFO *info, struct cifs_sb_info *cifs_sb) { |