From: Andre Noll Date: Sat, 11 Nov 2017 05:16:51 +0000 (+0100) Subject: Fix snapshot removal reason. X-Git-Tag: v1.0.0~19^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=404aae666e5f8d7ce511639cbe4727a7f2e690cc;p=dss.git 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. --- 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;