I have used two weeks in locating a bug in my ext2 implementation while the bug was actually in disk write. If you called write_sectors on disk it would write the first sector_size bytes repeatedly to all asked sectors and this corrupted the disk...