]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Add new option --keep-redundant.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index cd69c27d85a5066a49c00817621db6371c01d31e..49be34839204d3ac4113ee97c7bc87cb72e904e5 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -329,6 +329,8 @@ static int try_to_free_disk_space(int low_disk_space)
        int ret;
        struct snapshot_list sl;
 
+       if (!low_disk_space && conf.keep_redundant_given)
+               return 0;
        dss_get_snapshot_list(&sl);
        ret = remove_outdated_snapshot(&sl);
        if (ret) /* error, or we are removing something */