diff options
| author | Andre Noll <maan@tuebingen.mpg.de> | 2015-12-29 15:27:06 +0000 |
|---|---|---|
| committer | Andre Noll <maan@tuebingen.mpg.de> | 2016-03-03 15:34:48 +0100 |
| commit | bb57abb9288aae5dfe0fec57d953f01b514443ec (patch) | |
| tree | 457408a36921a78c829bcaa60245f2536a9f1ae7 | |
| parent | d13861de884e6d76fb854d1869e7c4373d619b6e (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
