summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-11 10:10:17 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-11 10:10:17 +0200
commitc246f2db4ad072cfc444486b50382c8603f30dd7 (patch)
treef9c2f1a45a74b7124c9cf14cc94f02fb0f7817c5 /Kernel/FileSystem
parentc0bfea1b5c341f4f4398c25c6517b503fc37e314 (diff)
downloadserenity-c246f2db4ad072cfc444486b50382c8603f30dd7.zip
ProcFS: Add "readonly" and "block_size" fields to /proc/df
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp2
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>();