From b7a1d19d114288ac3292a26d2d42825e26884d36 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Apr 2000 08:44:56 +0000 Subject: use sys_fsusage() not disk_free() in printing.c (This used to be commit 763704f78fc44976b2d977e8a08ffdeb727903c4) --- source3/printing/printing.c | 6 +++--- 1 file 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; } -- cgit