1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

Kernel: Add tightly typed ISO9660Inode::fs() overload

We know the fs() is always an ISO9660FS, so let's be nice and make fs()
return that when called on an ISO9660Inode. :^)
This commit is contained in:
Andreas Kling 2021-08-15 12:50:22 +02:00
parent 37304203dd
commit 5416fa252a
2 changed files with 11 additions and 11 deletions

View file

@ -347,6 +347,9 @@ class ISO9660Inode final : public Inode {
public:
virtual ~ISO9660Inode() override;
ISO9660FS& fs() { return static_cast<ISO9660FS&>(Inode::fs()); }
ISO9660FS const& fs() const { return static_cast<ISO9660FS const&>(Inode::fs()); }
// ^Inode
virtual KResultOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer& buffer, FileDescription*) const override;
virtual InodeMetadata metadata() const override;