summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-20 22:10:54 -0800
committerJeremy Allison <jra@samba.org>2008-02-20 22:10:54 -0800
commit94ed19c4a89003cb53c9dcfd068246806028e038 (patch)
tree4b44942deee34df93b62ab192b8fd0bcb5200adc /source3/modules
parent34eef81d2ab05e576401da1f80a264f1fd193f36 (diff)
downloadsamba-94ed19c4a89003cb53c9dcfd068246806028e038.tar.gz
samba-94ed19c4a89003cb53c9dcfd068246806028e038.tar.bz2
samba-94ed19c4a89003cb53c9dcfd068246806028e038.zip
From: David Disseldorp <ddiss@sgi.com>
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 (This used to be commit d9b72282c63b57c8e54131306b2a3028a1ea41dc)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_prealloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index cb3508dc30..2a06e3d81b 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/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);
}
-