X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=dss.c;h=6101f17742c7ba8ef6e3a57a1878dfccb7227feb;hb=0ba29646cbd80a8bb7bdf827352bd1332217c398;hp=d7d3e1649d69b849e99cf221ecead9e5a8e61daa;hpb=a8e80f1cb5d4c7d4647f50a799e965137b5502a8;p=dss.git diff --git a/dss.c b/dss.c index d7d3e16..6101f17 100644 --- a/dss.c +++ b/dss.c @@ -449,8 +449,14 @@ static int try_to_free_disk_space(void) gettimeofday(&now, NULL); if (tv_diff(&next_removal_check, &now, NULL) > 0) return 0; - if (!low_disk_space && conf.keep_redundant_given) - return 0; + if (!low_disk_space) { + if (conf.keep_redundant_given) + return 0; + if (snapshot_creation_status != HS_READY) + return 0; + if (next_snapshot_is_due()) + return 0; + } dss_get_snapshot_list(&sl); ret = 0; if (!low_disk_space && sl.num_snapshots <= 1)