]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Fix removal of orphaned snapshots.
authorAndre Noll <maan@systemlinux.org>
Sun, 7 Jun 2009 19:44:50 +0000 (21:44 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 7 Jun 2009 19:44:50 +0000 (21:44 +0200)
These were detected but not removed due to the goto jumping to the
wrong label.

dss.c

diff --git a/dss.c b/dss.c
index bb71bc4cef5a86033d94422e0d6cbf32043bb9df..b9afbc4a8505d1886420d1355bd742dbdd73c756 100644 (file)
--- 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)
        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)
        DSS_WARNING_LOG("disk space low and nothing obvious to remove\n");
        victim = find_oldest_removable_snapshot(&sl);
        if (victim)