From bb57abb9288aae5dfe0fec57d953f01b514443ec Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 29 Dec 2015 15:27:06 +0000 Subject: [PATCH] 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. --- dss.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2