1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 10:32:17 +00:00

Ext2FS: Stop using FS::DirectoryEntry

We were only using this as a temporary helper object while constructing
directories. Create a simpler Ext2FSDirectoryEntry instead for this.
This commit is contained in:
Andreas Kling 2020-08-18 18:01:42 +02:00
parent 108263314a
commit 6ad2d31952
2 changed files with 19 additions and 12 deletions

View file

@ -41,6 +41,7 @@ struct ext2_super_block;
namespace Kernel {
class Ext2FS;
struct Ext2FSDirectoryEntry;
class Ext2FSInode final : public Inode {
friend class Ext2FS;
@ -76,7 +77,7 @@ private:
virtual KResult chown(uid_t, gid_t) override;
virtual KResult truncate(u64) override;
bool write_directory(const Vector<FS::DirectoryEntry>&);
bool write_directory(const Vector<Ext2FSDirectoryEntry>&);
void populate_lookup_cache() const;
KResult resize(u64);