From d9b72282c63b57c8e54131306b2a3028a1ea41dc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 20 Feb 2008 22:10:54 -0800 Subject: [PATCH] From: David Disseldorp The vfs_prealloc module makes use of the now redundant fd parameter for SMB_VFS_FTRUNCATE(), instead get the fd from the files_struct. Patch for Samba 3.2 Test branch below. Cheers, David D --- source/modules/vfs_prealloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/modules/vfs_prealloc.c b/source/modules/vfs_prealloc.c index cb3508dc30f..2a06e3d81bd 100644 --- a/source/modules/vfs_prealloc.c +++ b/source/modules/vfs_prealloc.c @@ -199,7 +199,7 @@ static int prealloc_ftruncate(vfs_handle_struct * handle, /* Maintain the allocated space even in the face of truncates. */ if ((psize = VFS_FETCH_FSP_EXTENSION(handle, fsp))) { - preallocate_space(fd, *psize); + preallocate_space(fsp->fh->fd, *psize); } return ret; @@ -218,4 +218,3 @@ NTSTATUS vfs_prealloc_init(void) return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, MODULE, prealloc_op_tuples); } - -- 2.47.3