]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: check for VFS_PWRITE_APPEND_OFFSET in vfs_fill_sparse()
authorRalph Boehme <slow@samba.org>
Fri, 29 Nov 2024 12:04:36 +0000 (13:04 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 7 Jan 2025 22:04:33 +0000 (22:04 +0000)
commitf67ad08bc696b58cb416f45897ea1f7b3dd4f908
tree70fda7c6640b2d9b4c5a5fcc7a2cd3e36674c3ad
parent62cc18dcac29b803d191af7d7800067a23a33458
smbd: check for VFS_PWRITE_APPEND_OFFSET in vfs_fill_sparse()

This is the only place a function dealing with allocation and file length being
called from the write IO path. In the case of POSIX append-IO with
offset=VFS_PWRITE_APPEND_OFFSET vfs_fill_sparse() must be a noop.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/vfs.c