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.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=404aae666e5f8d7ce511639cbe4727a7f2e690cc;ds=sidebyside 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;