mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
Ext2FS: Delete inodes when their link count goes to zero.
This commit is contained in:
parent
bda0c935c2
commit
05f18febb6
4 changed files with 35 additions and 10 deletions
|
@ -223,11 +223,13 @@ bool IDEDiskDevice::read_sectors(dword start_sector, word count, byte* outbuf)
|
|||
bool IDEDiskDevice::write_sectors(dword start_sector, word count, const byte* data)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
#ifdef DISK_DEBUG
|
||||
dbgprintf("%s(%u): IDEDiskDevice::write_sectors request (%u sector(s) @ %u)\n",
|
||||
current->name().characters(),
|
||||
current->pid(),
|
||||
count,
|
||||
start_sector);
|
||||
#endif
|
||||
disable_irq();
|
||||
|
||||
auto chs = lba_to_chs(start_sector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue