diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-17 23:08:01 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-18 08:59:27 +0100 |
commit | 716ea734e4cd83a2030ca2cac10056bdaab1a021 (patch) | |
tree | 8caf80f6c76f5de768896e6d0aebaf3fadbc3116 /source3/profile/profile.c | |
parent | 7157221da5bc6787b08ab26c9e83c08208b41d8a (diff) | |
download | samba-716ea734e4cd83a2030ca2cac10056bdaab1a021.tar.gz samba-716ea734e4cd83a2030ca2cac10056bdaab1a021.tar.xz samba-716ea734e4cd83a2030ca2cac10056bdaab1a021.zip |
Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter.
It turns out we need the fallocate operations to be able to both
allocate and extend filesize, and to allocate and not extend
filesize, and posix_fallocate can only do the former. So by defining
the vfs op as posix_fallocate we lose the opportunity to use any
underlying syscalls (like Linux fallocate) that can do the latter
as well.
We don't currently use the non-extending filesize call, but now
I've changed the vfs op definition we can in the future. For the
moment simply map the fallocate op onto posix_fallocate for the
VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the
VFS_FALLOCATE_KEEP_SIZE case.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/profile/profile.c')
-rw-r--r-- | source3/profile/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c index 8013fc3956b..c2704a1f0ef 100644 --- a/source3/profile/profile.c +++ b/source3/profile/profile.c @@ -234,7 +234,7 @@ bool profile_setup(struct messaging_context *msg_ctx, bool rdonly) "syscall_getwd", /* PR_VALUE_SYSCALL_GETWD */ "syscall_ntimes", /* PR_VALUE_SYSCALL_NTIMES */ "syscall_ftruncate", /* PR_VALUE_SYSCALL_FTRUNCATE */ - "syscall_posix_fallocate", /* PR_VALUE_SYSCALL_POSIX_FALLOCATE */ + "syscall_fallocate", /* PR_VALUE_SYSCALL_FALLOCATE */ "syscall_fcntl_lock", /* PR_VALUE_SYSCALL_FCNTL_LOCK */ "syscall_kernel_flock", /* PR_VALUE_SYSCALL_KERNEL_FLOCK */ "syscall_linux_setlease", /* PR_VALUE_SYSCALL_LINUX_SETLEASE */ |