ProcFS: Add "readonly" and "block_size" fields to /proc/df

This commit is contained in:
Andreas Kling 2019-08-11 10:10:17 +02:00
parent c0bfea1b5c
commit c246f2db4a
Notes: sideshowbarker 2024-07-19 12:45:31 +09:00

View File

@ -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>();