[PATCH 0/2] smb/client: fix emulated insert range handling
Huiwen He <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
From: Huiwen He <[email protected]> This series fixes two issues in the SMB3 FALLOC_FL_INSERT_RANGE emulation. Patch 1 fixes missing new EOF validation, which allowed RLIMIT_FSIZE to be bypassed. Patch 2 preserves hole semantics for inserted ranges, fixing xfstests generic/064 against Samba and ksmbd. In my Windows Server testing, aligned 64 KiB and 128 KiB insert ranges were reported as holes, but generic/064 still fails because it uses 4 KiB inserts. Azure Files may not pass the test because it does not support sparse files. Thanks, Huiwen Huiwen He (2): smb/client: validate new EOF for insert range smb/client: mark file sparse before emulating insert range fs/smb/client/smb2ops.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) -- 2.43.0