diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-11 10:10:17 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-11 10:10:17 +0200 |
commit | c246f2db4ad072cfc444486b50382c8603f30dd7 (patch) | |
tree | f9c2f1a45a74b7124c9cf14cc94f02fb0f7817c5 /Kernel | |
parent | c0bfea1b5c341f4f4398c25c6517b503fc37e314 (diff) | |
download | serenity-c246f2db4ad072cfc444486b50382c8603f30dd7.zip |
ProcFS: Add "readonly" and "block_size" fields to /proc/df
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/ProcFS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index fc7d0cae09..df86303491 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -480,6 +480,8 @@ Optional<KBuffer> procfs$df(InodeIdentifier) fs_object.set("total_inode_count", fs.total_inode_count()); fs_object.set("free_inode_count", fs.free_inode_count()); fs_object.set("mount_point", mount.absolute_path()); + fs_object.set("block_size", fs.block_size()); + fs_object.set("readonly", fs.is_readonly()); json.append(fs_object); }); return json.serialized<KBufferBuilder>(); |