mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ksmbd: honor byte-range locks for zero data
FSCTL_SET_ZERO_DATA changes file allocation state and must respect byte-range locks over the affected part of the file. Check the requested range, clipped to EOF, before issuing the fallocate operation. Return STATUS_FILE_LOCK_CONFLICT when the range conflicts with an existing lock. Ranges starting past EOF are left untouched by the lock check so they continue to succeed. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
3c707d4b3f
commit
8b57448a14
2 changed files with 18 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue