X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=dss.c;h=a895019a19bac91b7ca66d46a63373ead0123c97;hp=5f7cfe04599ef8c60b7a68c94ff26cd44117e28d;hb=404aae666e5f8d7ce511639cbe4727a7f2e690cc;hpb=ce9d8dbb002447f4a7de548a1e3fe3ec5ead73b6 diff --git a/dss.c b/dss.c index 5f7cfe0..a895019 100644 --- a/dss.c +++ b/dss.c @@ -5,6 +5,7 @@ */ #include #include +#include #include #include #include @@ -636,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; @@ -1156,11 +1158,11 @@ static int rename_resume_snap(int64_t creation_time) s = find_orphaned_snapshot(&sl); out: if (s) { - DSS_INFO_LOG(("reusing %s snapshot %s\n", why, s->name)); + DSS_NOTICE_LOG(("recycling %s snapshot %s\n", why, s->name)); ret = dss_rename(s->name, new_name); } if (ret >= 0) - DSS_NOTICE_LOG(("creating new snapshot %s\n", new_name)); + DSS_NOTICE_LOG(("creating %s\n", new_name)); free(new_name); free_snapshot_list(&sl); return ret; @@ -1515,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;