[Buildd-tools-devel] Maybe-confusing error message about disk space check

Cyril Brulebois cyril.brulebois at kerlabs.com
Tue Nov 25 22:36:43 UTC 2008


Hi,

I've just experienced a strange moment with sbuild.

First:
| 23:24:04  <KiBi> (Source needs 231392 KB, free are 146804 KB.)
| 23:24:07  <KiBi> \o/ sbuild.

so I was pretty happy with sbuild not trying to fill the disk up.

Second, after some cleanup:
| 23:26:57  <KiBi> (Source needs 231392 KB, free are 399336 KB.)

I started wondering a bit. :-)

Looking at the code, the check is on needed space being lower than twice
the available space:
| cyril at talisker:~/opt$ grep 'if.*free.*current_usage'
| /usr/share/perl5/Sbuild/Build.pm
| 	if ($free < 2*$current_usage) {

So I'm starting to think it could be an idea to somehow specify the “2”
factor somewhere, so that people can't even think of sbuild being unable
to do the maths. Maybe something along those lines:
| “(Source needs 231392 KB, free are 399336 KB, must be at least …)”

Cheers,
-- 
Cyril Brulebois
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20081125/65b26f56/attachment.pgp 


More information about the Buildd-tools-devel mailing list