Extra debug to see what errno is on write fail.
authorJeremy Allison <jra@samba.org>
Sat, 4 Aug 2001 00:24:54 +0000 (00:24 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 4 Aug 2001 00:24:54 +0000 (00:24 +0000)
Jeremy.
(This used to be commit 352a02bf5c1b3ab9db92f86fd22f7a781a2c2996)

source3/smbd/vfs.c

index 834d75266e8b8320fa980dce1de878b8d4301202..84aa81c38c2464d4f70cf8922669f998dd1d1239 100644 (file)
@@ -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;
                        }