fix: ext2 directory insertion; racing on inode create
authorLunaixsky <lunaixsky@qq.com>
Sat, 3 May 2025 00:45:01 +0000 (01:45 +0100)
committerLunaixsky <lunaixsky@qq.com>
Sat, 3 May 2025 17:47:28 +0000 (18:47 +0100)
use nesting lock for v_inode and v_dnode locking.

hold the lock on the parent directory upon creating inode
prevent contention across multiple process that partakes
similar actions

fix the edge case of dirent insertion with data block
boundary crossing.

fix the incorrect calculation between fsblock index and
ext2 data block/inode index.

new test case: fragfile - random file spammer


No differences found