In order to test an analysis tool, I need a file where the depth (
eh.eh_depth) is greater than 1.
I've tried a couple of things:
- A large file (1GiB)
- Creating hundreds of smaller files (1MiB), deleting every other one, and then filling the disk with one file (hoping for massive fragmentation).
In both cases I only got a depth of 1!
I even tried manually modifying the inodes in a hex editor, but I ended up corrupting the file system.
I wondered if it could be done with
debugfs, but I can't see how?
PS: I have seen the 'increasing depth of extent tree in ext4' question on stackoverflow, but I don't really want to create a 174GiB file.