From 404aae666e5f8d7ce511639cbe4727a7f2e690cc Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 11 Nov 2017 06:16:51 +0100 Subject: [PATCH] Fix snapshot removal reason. If the oldest snapshot has to be removed because disk space is low, we currently log "orphaned" as the reason, which is incorrect. --- dss.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2