run: Improve error diagnostics for chdir(2) failure.
[dss.git] / df.h
1 struct disk_space {
2 unsigned total_mb;
3 unsigned free_mb;
4 unsigned percent_free;
5 unsigned percent_free_inodes;
6 };
7
8 int get_disk_space(const char *path, struct disk_space *result);
9 void log_disk_space(struct disk_space *ds);
10