try_to_free_disk_space(): Explain what is going on.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 29 Dec 2015 15:27:06 +0000 (15:27 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 3 Mar 2016 14:34:48 +0000 (15:34 +0100)
This adds a comment which explains the conditions that must be
satisfied to get to this point in the function.

dss.c

diff --git a/dss.c b/dss.c
index 07a60425170ddab063ee6071d4901993a9db8c62..979ff132b04c30f233a7e05b59d05ea5b0e4ed07 100644 (file)
--- 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)