diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2021-09-29 08:37:18 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-09-30 16:58:06 +0200 |
commit | 88d300522cbb2827b679359e98cbadfb46e8226c (patch) | |
tree | a0610e2da907bfc567fa2ffdd14834a7065fc948 /fs/ksmbd/smb2pdu.h | |
parent | ksmbd: remove NTLMv1 authentication (diff) | |
download | linux-88d300522cbb2827b679359e98cbadfb46e8226c.tar.xz linux-88d300522cbb2827b679359e98cbadfb46e8226c.zip |
ksmbd: use correct basic info level in set_file_basic_info()
Use correct basic info level in set/get_file_basic_info().
Reviewed-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ksmbd/smb2pdu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ksmbd/smb2pdu.h b/fs/ksmbd/smb2pdu.h index bcec845b03f3..261825d06391 100644 --- a/fs/ksmbd/smb2pdu.h +++ b/fs/ksmbd/smb2pdu.h @@ -1464,6 +1464,15 @@ struct smb2_file_all_info { /* data block encoding of response to level 18 */ char FileName[1]; } __packed; /* level 18 Query */ +struct smb2_file_basic_info { /* data block encoding of response to level 18 */ + __le64 CreationTime; /* Beginning of FILE_BASIC_INFO equivalent */ + __le64 LastAccessTime; + __le64 LastWriteTime; + __le64 ChangeTime; + __le32 Attributes; + __u32 Pad1; /* End of FILE_BASIC_INFO_INFO equivalent */ +} __packed; + struct smb2_file_alt_name_info { __le32 FileNameLength; char FileName[0]; |