]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Clarify documentation of --run.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 3aa19d3c9a2b55aa1a352f95f195f676046f5b1b..49be34839204d3ac4113ee97c7bc87cb72e904e5 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -1,3 +1,8 @@
+/*
+ * Copyright (C) 2008 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
 #include <string.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -119,7 +124,6 @@ static __printf_1_2 void dss_msg(const char* fmt,...)
        va_end(argp);
 }
 
-/* TODO: Also consider number of inodes. */
 static int disk_space_low(void)
 {
        struct disk_space ds;
@@ -325,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 */