aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/vfs.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-01-30 18:31:01 +0900
committerSteve French <stfrench@microsoft.com>2022-02-04 00:12:22 -0600
commit04e260948a160d3b7d622bf4c8a96fa4577c09bd (patch)
tree058960c6cad452f40026442df0265681a79bdd53 /fs/ksmbd/vfs.h
parentksmbd: fix same UniqueId for dot and dotdot entries (diff)
downloadlinux-dev-04e260948a160d3b7d622bf4c8a96fa4577c09bd.tar.xz
linux-dev-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.h1
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 {