From: Andre Noll Date: Tue, 29 Dec 2015 15:27:06 +0000 (+0000) Subject: try_to_free_disk_space(): Explain what is going on. X-Git-Tag: v0.1.7~19 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=bb57abb9288aae5dfe0fec57d953f01b514443ec try_to_free_disk_space(): Explain what is going on. This adds a comment which explains the conditions that must be satisfied to get to this point in the function. --- diff --git a/dss.c b/dss.c index 07a6042..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)