mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
Kernel: Add 64 bit file size support to Ext2FS
This commit is contained in:
parent
ade6343fca
commit
71b433a6f9
Notes:
sideshowbarker
2024-07-18 21:15:48 +09:00
Author: https://github.com/boricj
Commit: 71b433a6f9
Pull-request: https://github.com/SerenityOS/serenity/pull/5766
Reviewed-by: https://github.com/supercomputer7
2 changed files with 33 additions and 6 deletions
|
@ -49,7 +49,7 @@ class Ext2FSInode final : public Inode {
|
|||
public:
|
||||
virtual ~Ext2FSInode() override;
|
||||
|
||||
size_t size() const { return m_raw_inode.i_size; }
|
||||
u64 size() const;
|
||||
bool is_symlink() const { return Kernel::is_symlink(m_raw_inode.i_mode); }
|
||||
bool is_directory() const { return Kernel::is_directory(m_raw_inode.i_mode); }
|
||||
|
||||
|
@ -105,6 +105,11 @@ class Ext2FS final : public BlockBasedFS {
|
|||
friend class Ext2FSInode;
|
||||
|
||||
public:
|
||||
enum class FeaturesReadOnly : u32 {
|
||||
None = 0,
|
||||
FileSize64bits = 1 << 1,
|
||||
};
|
||||
|
||||
static NonnullRefPtr<Ext2FS> create(FileDescription&);
|
||||
|
||||
virtual ~Ext2FS() override;
|
||||
|
@ -121,6 +126,8 @@ public:
|
|||
|
||||
virtual u8 internal_file_type_to_directory_entry_type(const DirectoryEntryView& entry) const override;
|
||||
|
||||
FeaturesReadOnly get_features_readonly() const;
|
||||
|
||||
private:
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(unsigned, GroupIndex);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue