diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2017-08-24 11:24:55 +1000 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-09-04 14:03:41 -0500 |
commit | 95907fea4fd8ccc736e0a428e52159b4d42b9958 (patch) | |
tree | e2f69feb6d0f5b2c85e8666502608584c22e14f7 /fs/cifs/smb2proto.h | |
parent | 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (diff) | |
download | linux-stable-95907fea4fd8ccc736e0a428e52159b4d42b9958.tar.gz linux-stable-95907fea4fd8ccc736e0a428e52159b4d42b9958.tar.bz2 linux-stable-95907fea4fd8ccc736e0a428e52159b4d42b9958.zip |
cifs: Add support for reading attributes on SMB2+
SMB1 already has support to read attributes. This adds similar support
to SMB2+.
With this patch, tools such as 'getfattr' will now work with SMB2+ shares.
RH-bz: 1110709
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index 1cadaf9f3c58..183389bfc8f6 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h @@ -132,6 +132,9 @@ extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id); extern int SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id); +extern int SMB2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, + u64 persistent_file_id, u64 volatile_file_id, + struct smb2_file_full_ea_info *data); extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id, struct smb2_file_all_info *data); |