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>
size_t num_to_write;
bool ok;
+ if (len == VFS_PWRITE_APPEND_OFFSET) {
+ return 0;
+ }
+
ok = vfs_valid_allocation_range(len, 0);
if (!ok) {
errno = EINVAL;