summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHobin Woo <hobin.woo@samsung.com>2024-12-05 11:31:19 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:33:46 +0100
commit7023866f161bb147b093c30813e8eb56a18d60ca (patch)
tree8cfe8297ad1af8fc7f4270660aaadf9114c0a01b /scripts
parent1da4ebd8691bb60004dca3b4401fa94c54123e18 (diff)
downloadlinux-7023866f161bb147b093c30813e8eb56a18d60ca.tar.gz
linux-7023866f161bb147b093c30813e8eb56a18d60ca.tar.bz2
linux-7023866f161bb147b093c30813e8eb56a18d60ca.zip
ksmbd: retry iterate_dir in smb2_query_dir
[ Upstream commit 2b904d61a97e8ba79e3bc216ba290fd7e1d85028 ] Some file systems do not ensure that the single call of iterate_dir reaches the end of the directory. For example, FUSE fetches entries from a daemon using 4KB buffer and stops fetching if entries exceed the buffer. And then an actor of caller, KSMBD, is used to fill the entries from the buffer. Thus, pattern searching on FUSE, files located after the 4KB could not be found and STATUS_NO_SUCH_FILE was returned. Signed-off-by: Hobin Woo <hobin.woo@samsung.com> Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com> Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Tested-by: Yoonho Shin <yoonho.shin@samsung.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions