diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-19 08:44:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-19 08:44:56 +0000 |
commit | b7a1d19d114288ac3292a26d2d42825e26884d36 (patch) | |
tree | 7723ac59bcddc2fc436f41f38688f65dccfa822b /source3/printing | |
parent | f074d6ef57de28a2855fb2f8d3357ec46cbe8be0 (diff) | |
download | samba-b7a1d19d114288ac3292a26d2d42825e26884d36.tar.gz samba-b7a1d19d114288ac3292a26d2d42825e26884d36.tar.bz2 samba-b7a1d19d114288ac3292a26d2d42825e26884d36.zip |
use sys_fsusage() not disk_free() in printing.c
(This used to be commit 763704f78fc44976b2d977e8a08ffdeb727903c4)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 8fa9d7db25..3202c6937d 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -565,9 +565,9 @@ int print_job_start(int snum, char *jobname) /* see if we have sufficient disk space */ if (lp_minprintspace(snum)) { - SMB_BIG_UINT dum1,dum2,dum3; - if (sys_disk_free(path,False,&dum1,&dum2,&dum3) < - (SMB_BIG_UINT)lp_minprintspace(snum)) { + SMB_BIG_UINT dspace, dsize; + if (sys_fsusage(path, &dspace, &dsize) == 0 && + dspace < 2*(SMB_BIG_UINT)lp_minprintspace(snum)) { errno = ENOSPC; return -1; } |