git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dcbde8
)
r5825: Fix one more DISK_FREE call - spotted by Ying Li <ying.li2@hp.com>.
author
Jeremy Allison
<jra@samba.org>
Wed, 16 Mar 2005 02:11:44 +0000
(
02:11
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:56:04 +0000
(10:56 -0500)
Jeremy.
(This used to be commit
19e017a78a90aca5f2d39a3c28472b9a595acbf3
)
source3/smbd/vfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/vfs.c
b/source3/smbd/vfs.c
index e170a71520c2fee972dbd6703a6aa6410e78840c..34671b8efc6f9faf6cf1fc1be4f998ae26d93ac8 100644
(file)
--- a/
source3/smbd/vfs.c
+++ b/
source3/smbd/vfs.c
@@
-552,6
+552,9
@@
int vfs_allocate_file_space(files_struct *fsp, SMB_BIG_UINT len)
len -= st.st_size;
len /= 1024; /* Len is now number of 1k blocks needed. */
space_avail = SMB_VFS_DISK_FREE(conn,fsp->fsp_name,False,&bsize,&dfree,&dsize);
+ if (space_avail == (SMB_BIG_UINT)-1) {
+ return -1;
+ }
DEBUG(10,("vfs_allocate_file_space: file %s, grow. Current size %.0f, needed blocks = %.0f, space avail = %.0f\n",
fsp->fsp_name, (double)st.st_size, (double)len, (double)space_avail ));