From 352a02bf5c1b3ab9db92f86fd22f7a781a2c2996 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 4 Aug 2001 00:24:54 +0000 Subject: [PATCH] Extra debug to see what errno is on write fail. Jeremy. --- source/smbd/vfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c index 834d75266e8..84aa81c38c2 100644 --- a/source/smbd/vfs.c +++ b/source/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; }