summaryrefslogtreecommitdiff
path: root/dss.c
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2017-11-11 06:16:51 +0100
committerAndre Noll <maan@tuebingen.mpg.de>2017-11-13 17:21:57 +0100
commit404aae666e5f8d7ce511639cbe4727a7f2e690cc (patch)
treef1e4348faa2238ad6ee73f983d0846f552548186 /dss.c
parent965855384d34b7f1c4730eb78f26d010adb9be42 (diff)
Fix snapshot removal reason.maint
If the oldest snapshot has to be removed because disk space is low, we currently log "orphaned" as the reason, which is incorrect.
Diffstat (limited to 'dss.c')
-rw-r--r--dss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dss.c b/dss.c
index aa8c0ea..a895019 100644
--- a/dss.c
+++ b/dss.c
@@ -637,6 +637,7 @@ static int try_to_free_disk_space(void)
if (!low_disk_space)
goto out;
DSS_WARNING_LOG(("disk space low and nothing obvious to remove\n"));
+ why = "oldest";
victim = find_oldest_removable_snapshot(&sl);
if (victim)
goto remove;