summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-12-02 17:26:00 -0800
committerJeremy Allison <jra@samba.org>2010-12-03 02:55:05 +0100
commitb8d7de319980f9efade92dd0721ed02efcb7e48d (patch)
treea37aff4ab5ececbf0ec6b4a9ee67a1de29cb65f4 /source3/include
parent1f1491da5ae2a2b7fd3a195f950b9057a01db18c (diff)
downloadsamba-b8d7de319980f9efade92dd0721ed02efcb7e48d.tar.gz
samba-b8d7de319980f9efade92dd0721ed02efcb7e48d.tar.bz2
samba-b8d7de319980f9efade92dd0721ed02efcb7e48d.zip
Merge the two conflicting allocation codes into one function, vfs_slow_fallocate()
and use that from both the truncate and fill_sparse functions. Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 85a7294d1a..19c693b252 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5562,6 +5562,7 @@ ssize_t vfs_pwrite_data(struct smb_request *req,
SMB_OFF_T offset);
int vfs_allocate_file_space(files_struct *fsp, uint64_t len);
int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len);
+int vfs_slow_fallocate(files_struct *fsp, SMB_OFF_T offset, SMB_OFF_T len);
int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len);
SMB_OFF_T vfs_transfer_file(files_struct *in, files_struct *out, SMB_OFF_T n);
const char *vfs_readdirname(connection_struct *conn, void *p,