From c992716c6cc852567e5f4bea41341bd3fcb7bbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 18 Nov 2010 17:27:32 +0100 Subject: [PATCH 7/8] s3: don't do strict allocate with sparse files **** TODO **** --- source3/modules/vfs_default.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 66dd5a9..764039e 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -894,7 +894,7 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O START_PROFILE(syscall_ftruncate); - if (lp_strict_allocate(SNUM(fsp->conn))) { + if (lp_strict_allocate(SNUM(fsp->conn))) { /* TODO: ... && SPARSE flag set */ result = strict_allocate_ftruncate(handle, fsp, len); END_PROFILE(syscall_ftruncate); return result; -- 1.7.3.1