Commit ca2c565a authored by Hobin Woo's avatar Hobin Woo Committed by Greg Kroah-Hartman
Browse files

ksmbd: retry iterate_dir in smb2_query_dir



[ Upstream commit 2b904d61 ]

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: default avatarHobin Woo <hobin.woo@samsung.com>
Reviewed-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Tested-by: default avatarYoonho Shin <yoonho.shin@samsung.com>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 42de6037
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment