diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2022-01-30 18:31:01 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-02-04 00:12:22 -0600 |
commit | 04e260948a160d3b7d622bf4c8a96fa4577c09bd (patch) | |
tree | 058960c6cad452f40026442df0265681a79bdd53 /fs/ksmbd/vfs.h | |
parent | 97550c7478a2da93e348d8c3075d92cddd473a78 (diff) | |
download | linux-stable-04e260948a160d3b7d622bf4c8a96fa4577c09bd.tar.gz linux-stable-04e260948a160d3b7d622bf4c8a96fa4577c09bd.tar.bz2 linux-stable-04e260948a160d3b7d622bf4c8a96fa4577c09bd.zip |
ksmbd: don't align last entry offset in smb2 query directory
When checking smb2 query directory packets from other servers,
OutputBufferLength is different with ksmbd. Other servers add an unaligned
next offset to OutputBufferLength for the last entry.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/vfs.h')
-rw-r--r-- | fs/ksmbd/vfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ksmbd/vfs.h b/fs/ksmbd/vfs.h index adf94a4f22fa..8c37aaf936ab 100644 --- a/fs/ksmbd/vfs.h +++ b/fs/ksmbd/vfs.h @@ -47,6 +47,7 @@ struct ksmbd_dir_info { int last_entry_offset; bool hide_dot_file; int flags; + int last_entry_off_align; }; struct ksmbd_readdir_data { |