Parent Directory | Revision Log | Patch
revision 339 by dpavlin, Wed Mar 1 13:40:44 2006 UTC | revision 341 by dpavlin, Tue Mar 7 10:06:52 2006 UTC | |
---|---|---|
# | Line 406 foreach my $copy_nr ( 1 .. $copies ) { | Line 406 foreach my $copy_nr ( 1 .. $copies ) { |
406 | ||
407 | # check available disk space | # check available disk space |
408 | ||
409 | my $df = df($iso_dir); | my $df = df($iso_dir)->{bavail} || die "can't get free space on $iso_dir"; |
410 | $df *= 1024; # calulate space in bytes | |
411 | if ($df < $v_size) { | if ($df < $v_size) { |
412 | warn "ABORTED: not enough disk space to create ISO ! [need ", fmt_mb($v_size), " have ", fmt_mb( df($iso_dir) ), "]\n"; | warn "ABORTED: not enough disk space to create ISO ! [need ", fmt_mb($v_size), " have ", fmt_mb( $df ), " on $iso_dir]\n"; |
413 | next; | next; |
414 | } | } |
415 |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |