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:
parent
f074d6ef57
commit
b7a1d19d11
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user