[patch] 3.2 test - remove redundant fd parameter usage from
vfs_prealloc.c
David Disseldorp
ddiss at sgi.com
Thu Feb 21 04:57:11 GMT 2008
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
diff --git a/source/modules/vfs_prealloc.c b/source/modules/vfs_prealloc.c
index cb3508d..b5c6333 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);
}
More information about the samba-technical
mailing list