Add application to monitor filesystem utilization.
Change-Id: I2305ac657c7b2c528d31e27f44b1a7d5015c2492
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/util/filesystem.fbs b/aos/util/filesystem.fbs
new file mode 100644
index 0000000..0571d15
--- /dev/null
+++ b/aos/util/filesystem.fbs
@@ -0,0 +1,23 @@
+namespace aos.util;
+
+table Filesystem {
+ // Mountpoint of the filesystem in question.
+ path: string (id: 0);
+ // Type (e.g., "ext4") of the filesystem.
+ type: string (id: 1);
+ // Total size of the filesystem, in bytes.
+ overall_space: uint64 (id: 2);
+ // Total free space on the filesystem, in bytes.
+ free_space: uint64 (id: 3);
+ // Total number of inodes on this filesystem.
+ overall_inodes: uint64 (id: 4);
+ // Total free inodes on this filesystem.
+ free_inodes: uint64 (id: 5);
+}
+
+// Table to track the current state of a compute platform's filesystem.
+table FilesystemStatus {
+ filesystems: [Filesystem] (id: 0);
+}
+
+root_type FilesystemStatus;