Also check for free inodes and start snapshot removal if necessary.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index cee0f07..ef42e39 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -133,6 +133,9 @@ static int disk_space_low(void)
        if (conf.min_free_percent_arg)
                if (ds.percent_free < conf.min_free_percent_arg)
                        return 1;
+       if (conf.min_free_percent_inodes_arg)
+               if (ds.percent_free_inodes < conf.min_free_percent_inodes_arg)
+                       return 1;
        return 0;
 }