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/smb2pdu.h | |
parent | 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (diff) | |
download | talos-obmc-linux-95907fea4fd8ccc736e0a428e52159b4d42b9958.tar.gz talos-obmc-linux-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/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 2826882c81d1..393ed5f4e1b6 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -1178,6 +1178,16 @@ struct smb2_file_link_info { /* encoding of request for level 11 */ char FileName[0]; /* Name to be assigned to new link */ } __packed; /* level 11 Set */ +#define SMB2_MAX_EA_BUF 2048 + +struct smb2_file_full_ea_info { /* encoding of response for level 15 */ + __le32 next_entry_offset; + __u8 flags; + __u8 ea_name_length; + __le16 ea_value_length; + char ea_data[0]; /* \0 terminated name plus value */ +} __packed; /* level 15 Set */ + /* * This level 18, although with struct with same name is different from cifs * level 0x107. Level 0x107 has an extra u64 between AccessFlags and |