]> git.tuebingen.mpg.de Git - dss.git/blobdiff - df.h
Add fd.c and ds.h: functions for computing free disk space.
[dss.git] / df.h
diff --git a/df.h b/df.h
new file mode 100644 (file)
index 0000000..d89531f
--- /dev/null
+++ b/df.h
@@ -0,0 +1,9 @@
+struct disk_space {
+       unsigned total_mb;
+       unsigned free_mb;
+       unsigned percent_free;
+       unsigned percent_free_inodes;
+};
+
+int get_disk_space(const char *path, struct disk_space *result);
+