mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 09:55:07 +00:00
FS: Don't default to having a full InodeMetadata in every Inode.
This allows Ext2FS to keep its own ext2_inode around instead.
This commit is contained in:
parent
0cb074dc73
commit
d07b08a287
8 changed files with 93 additions and 80 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
private:
|
||||
// ^Inode
|
||||
virtual ssize_t read_bytes(Unix::off_t, size_t, byte* buffer, FileDescriptor*) override;
|
||||
virtual void populate_metadata() const override;
|
||||
virtual InodeMetadata metadata() const override;
|
||||
virtual bool traverse_as_directory(Function<bool(const FS::DirectoryEntry&)>) override;
|
||||
virtual InodeIdentifier lookup(const String& name) override;
|
||||
virtual String reverse_lookup(InodeIdentifier) override;
|
||||
|
@ -64,4 +64,5 @@ private:
|
|||
ByteBuffer m_data;
|
||||
Function<ByteBuffer()> m_generator;
|
||||
Vector<SynthFSInode*> m_children;
|
||||
InodeMetadata m_metadata;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue