mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:28:11 +00:00
Kernel: Improvements to Custody absolute path serialization
- Renamed try_create_absolute_path() => try_serialize_absolute_path() - Use KResultOr and TRY() to propagate errors - Don't call this when it's only for debug logging
This commit is contained in:
parent
f173f73f10
commit
cda2b9e71c
6 changed files with 21 additions and 33 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
Inode& inode() { return *m_inode; }
|
||||
Inode const& inode() const { return *m_inode; }
|
||||
StringView name() const { return m_name->view(); }
|
||||
OwnPtr<KString> try_create_absolute_path() const;
|
||||
KResultOr<NonnullOwnPtr<KString>> try_serialize_absolute_path() const;
|
||||
String absolute_path() const;
|
||||
|
||||
int mount_flags() const { return m_mount_flags; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue