1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Extra debug to see what errno is on write fail.

Jeremy.
This commit is contained in:
Jeremy Allison -
parent 28b4ee1eba
commit 352a02bf5c

View 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;
}