From 8998f4b01310e4b45e75d8d5f3260b5ba5c1cdf9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 20 Dec 2010 16:53:16 -0800 Subject: Added call out to a Linux-compatible fallocate() when we need to extend a file allocation extent without changing end-of-file size. Autobuild-User: Jeremy Allison Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104 --- source3/include/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index dabb315875..566b3f31df 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -888,6 +888,7 @@ int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf, bool fake_dir_create_times); int sys_ftruncate(int fd, SMB_OFF_T offset); int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len); +int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OFF_T len); SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence); int sys_fseek(FILE *fp, SMB_OFF_T offset, int whence); SMB_OFF_T sys_ftell(FILE *fp); -- cgit