1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

use sys_fsusage() not disk_free() in printing.c

(This used to be commit 763704f78fc44976b2d977e8a08ffdeb727903c4)
This commit is contained in:
Andrew Tridgell 2000-04-19 08:44:56 +00:00
parent f074d6ef57
commit b7a1d19d11

View File

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