From fafaa26953e4f452c6b91de4e24ec5ad2a8f6700 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 29 Dec 2015 15:33:11 +0000 Subject: [PATCH] Remove orphaned snapshots even if disk space is not low. Due to the previous patch, this is only executed if we have too many snapshot anyway. --- dss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dss.c b/dss.c index a3bda53..08a9f4c 100644 --- a/dss.c +++ b/dss.c @@ -627,13 +627,13 @@ static int try_to_free_disk_space(void) victim = find_redundant_snapshot(&sl); if (victim) goto remove; - /* try harder only if disk space is low */ - if (!low_disk_space) - goto out; why = "orphaned"; victim = find_orphaned_snapshot(&sl); if (victim) goto remove; + /* try harder only if disk space is low */ + if (!low_disk_space) + goto out; DSS_WARNING_LOG(("disk space low and nothing obvious to remove\n")); victim = find_oldest_removable_snapshot(&sl); if (victim) -- 2.39.2