mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
Kernel: Convert Mount::absolute_path to ErrorOr<NonnullOwnPtr<KString>>
This commit is contained in:
parent
6be2a51b10
commit
4e7d307166
3 changed files with 10 additions and 5 deletions
|
@ -358,7 +358,12 @@ private:
|
|||
fs_object.add("free_block_count", fs.free_block_count());
|
||||
fs_object.add("total_inode_count", fs.total_inode_count());
|
||||
fs_object.add("free_inode_count", fs.free_inode_count());
|
||||
fs_object.add("mount_point", mount.absolute_path());
|
||||
auto mount_point_or_error = mount.absolute_path();
|
||||
if (mount_point_or_error.is_error()) {
|
||||
result = mount_point_or_error.release_error();
|
||||
return IterationDecision::Break;
|
||||
}
|
||||
fs_object.add("mount_point", mount_point_or_error.value()->view());
|
||||
fs_object.add("block_size", static_cast<u64>(fs.block_size()));
|
||||
fs_object.add("readonly", fs.is_readonly());
|
||||
fs_object.add("mount_flags", mount.flags());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue