summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-08-04 00:24:54 +0000
committerJeremy Allison <jra@samba.org>2001-08-04 00:24:54 +0000
commit27bdf594fbdb1d403c4810f8ae5d00dcb3999e9f (patch)
treebe9cd4ae57541bed393edaf41623f42a9719ce6a /source3/smbd
parent4f415ef128528bcecddceee353d40dd3eedf64fd (diff)
downloadsamba-27bdf594fbdb1d403c4810f8ae5d00dcb3999e9f.tar.gz
samba-27bdf594fbdb1d403c4810f8ae5d00dcb3999e9f.tar.bz2
samba-27bdf594fbdb1d403c4810f8ae5d00dcb3999e9f.zip
Extra debug to see what errno is on write fail.
Jeremy. (This used to be commit 352a02bf5c1b3ab9db92f86fd22f7a781a2c2996)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 834d75266e..84aa81c38c 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -362,6 +362,8 @@ int vfs_allocate_file_space(files_struct *fsp, SMB_OFF_T len)
int save_errno = errno;
fsp->conn->vfs_ops.ftruncate(fsp, fsp->fd, st.st_size);
errno = save_errno;
+ DEBUG(10,("vfs_allocate_file_space: file %s, grow. write fail %s\n",
+ fsp->fsp_name, strerror(errno) ));
return -1;
}