1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

Add a simple /bin/df which gathers its info from /proc/df.

This commit is contained in:
Andreas Kling 2019-02-21 14:48:00 +01:00
parent 7d288aafb2
commit 43075e5878
8 changed files with 119 additions and 0 deletions

View file

@ -37,6 +37,11 @@ public:
bool is_readonly() const { return m_readonly; }
virtual unsigned total_block_count() const { return 0; }
virtual unsigned free_block_count() const { return 0; }
virtual unsigned total_inode_count() const { return 0; }
virtual unsigned free_inode_count() const { return 0; }
struct DirectoryEntry {
DirectoryEntry(const char* name, InodeIdentifier, byte file_type);
DirectoryEntry(const char* name, size_t name_length, InodeIdentifier, byte file_type);