summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2015-12-29 15:27:06 +0000
committerAndre Noll <maan@tuebingen.mpg.de>2016-03-03 15:34:48 +0100
commitbb57abb9288aae5dfe0fec57d953f01b514443ec (patch)
tree457408a36921a78c829bcaa60245f2536a9f1ae7
parentd13861de884e6d76fb854d1869e7c4373d619b6e (diff)
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.
-rw-r--r--dss.c4
1 files changed, 4 insertions, 0 deletions
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)