summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-07 23:47:20 +0000
committerJeremy Allison <jra@samba.org>2001-11-07 23:47:20 +0000
commit3343d0281d460559f6893a136991ef6492639bbe (patch)
tree44873f53cc01e21cbd6f4109723e0357918b9535 /source3/smbd
parent2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3 (diff)
downloadsamba-3343d0281d460559f6893a136991ef6492639bbe.tar.gz
samba-3343d0281d460559f6893a136991ef6492639bbe.tar.bz2
samba-3343d0281d460559f6893a136991ef6492639bbe.zip
Added debug in truncate, fixed warning with gcc3.
Jeremy. (This used to be commit 970ec14b4ba1ccf66820384ced8442e1878c09cd)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 02a78c4cd3..37cee4918b 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -386,6 +386,7 @@ int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len)
int ret;
release_level_2_oplocks_on_change(fsp);
+ DEBUG(10,("vfs_set_filelen: ftruncate %s to len %.0f\n", fsp->fsp_name, (double)len));
if ((ret = fsp->conn->vfs_ops.ftruncate(fsp, fsp->fd, len)) != -1)
set_filelen_write_cache(fsp, len);