mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
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)
This commit is contained in:
parent
34eef81d2a
commit
94ed19c4a8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user