X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=dss.c;h=979ff132b04c30f233a7e05b59d05ea5b0e4ed07;hb=bb57abb9288aae5dfe0fec57d953f01b514443ec;hp=95c4c03ab1c3467aa33507b35f7e57cc81d4aea9;hpb=61e824a2563c8b78401278faf6d4e9fad29c1c12;p=dss.git diff --git a/dss.c b/dss.c index 95c4c03..979ff13 100644 --- a/dss.c +++ b/dss.c @@ -606,6 +606,10 @@ static int try_to_free_disk_space(void) if (next_snapshot_is_due()) return 0; } + /* + * Idle and --keep_redundant not given, or low disk space. Look at + * existing snapshots. + */ dss_get_snapshot_list(&sl); ret = 0; if (!low_disk_space && sl.num_snapshots <= 1) @@ -1524,6 +1528,7 @@ int main(int argc, char **argv) if (ret < 0) goto out; ret = call_command_handler(); + signal_shutdown(); out: if (ret < 0) DSS_EMERG_LOG(("%s\n", dss_strerror(-ret)));