From: Andre Noll Date: Sun, 7 Jun 2009 19:44:50 +0000 (+0200) Subject: Fix removal of orphaned snapshots. X-Git-Tag: v0.1.3~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=442d1920cb866fb6e0a816d7e175b5cdb8c0e1a8;ds=sidebyside Fix removal of orphaned snapshots. These were detected but not removed due to the goto jumping to the wrong label. --- diff --git a/dss.c b/dss.c index bb71bc4..b9afbc4 100644 --- a/dss.c +++ b/dss.c @@ -447,7 +447,7 @@ static int try_to_free_disk_space(int low_disk_space) why = "orphaned"; victim = find_orphaned_snapshot(&sl); if (victim) - goto out; + goto remove; DSS_WARNING_LOG("disk space low and nothing obvious to remove\n"); victim = find_oldest_removable_snapshot(&sl); if (victim)