Fix snapshot removal reason.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 4c068c6c96443f44b15e5c78e5977dad83a4f36d..a895019a19bac91b7ca66d46a63373ead0123c97 100644 (file)
--- 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;
@@ -1516,7 +1517,6 @@ int main(int argc, char **argv)
                 * Parse the command line options again, but this time check
                 * that all required options are given.
                 */
-               struct cmdline_parser_params params;
                params.override = 1;
                params.initialize = 1;
                params.check_required = 1;