Completed mbtask new disk watcher

This commit is contained in:
Michiel Broek
2004-03-20 23:00:22 +00:00
parent f2a5b62745
commit f55ff6280f
33 changed files with 132 additions and 126 deletions

View File

@@ -1085,7 +1085,7 @@ TrType binkp_receiver(void)
gettimeofday(&rxtvstart, &bp.tz);
bp.rxpos = bp.roffs;
if (!diskfree(CFG.freespace)) {
if (enoughspace(CFG.freespace) == 0) {
Syslog('+', "Binkp: low diskspace, sending BSY");
binkp_send_command(MM_BSY, "Low diskspace, try again later");
bp.RxState = RxDone;

View File

@@ -346,8 +346,10 @@ int main(int argc, char *argv[])
/*
* Don't do outbound calls if low diskspace
*/
if (!diskfree(CFG.freespace))
if (enoughspace(CFG.freespace) == 0) {
WriteError("Low diskspace, abort");
die(MBERR_DISK_FULL);
}
if (addr == NULL) {
WriteError("Calling mbcico without node address not supported anymore");