mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Ext2FS: Support shrinking inode to a smaller size.
Factor out inode resizing into a separate Ext2FSInode::resize() function. This is then called both from write_bytes() and truncate(). This patch finally implements freeing of blocks when an inode shrinks.
This commit is contained in:
parent
89df887e1f
commit
899f6a5de2
2 changed files with 50 additions and 30 deletions
|
@ -45,6 +45,7 @@ private:
|
|||
virtual KResult truncate(off_t) override;
|
||||
|
||||
void populate_lookup_cache() const;
|
||||
bool resize(qword);
|
||||
|
||||
Ext2FS& fs();
|
||||
const Ext2FS& fs() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue