diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-02 16:25:59 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-02 16:25:59 -0800 |
commit | 5819a36aef030772f1e9da81655c1f911a10372c (patch) | |
tree | 8746c0f52b94f3b2bd722474b653860b10df2a14 /source3/include/vfs_macros.h | |
parent | de8ceb5364de86f9b016251201474f011c16f6cb (diff) | |
download | samba-5819a36aef030772f1e9da81655c1f911a10372c.tar.gz |
Move posix_fallocate into the VFS where it belongs.
Jeremy.
Diffstat (limited to 'source3/include/vfs_macros.h')
-rw-r--r-- | source3/include/vfs_macros.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 5b38e64cbf..2eedd2bfbb 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -249,6 +249,11 @@ #define SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset) \ smb_vfs_call_ftruncate((handle)->next, (fsp), (offset)) +#define SMB_VFS_POSIX_FALLOCATE(fsp, offset, len) \ + smb_vfs_call_posix_fallocate((fsp)->conn->vfs_handles, (fsp), (offset), (len)) +#define SMB_VFS_NEXT_POSIX_FALLOCATE(handle, fsp, offset, len) \ + smb_vfs_call_posix_fallocate((handle)->next, (fsp), (offset), (len)) + #define SMB_VFS_LOCK(fsp, op, offset, count, type) \ smb_vfs_call_lock((fsp)->conn->vfs_handles, (fsp), (op), (offset), (count), (type)) #define SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type) \ |