Thread (12 messages) 12 messages, 4 authors, 2019-07-06

Re: Question about ext4 testing: need to produce a high depth extent tree to verify mapping code

From: Matthew Wilcox <willy@infradead.org>
Date: 2019-07-05 17:39:11
Also in: linux-fsdevel

On Fri, Jul 05, 2019 at 09:25:48AM -0700, James Bottomley wrote:
Now the problem: I'd like to do some testing with high depth extent
trees to make sure I got this right, but the files we load at boot are
~20MB in size and I'm having a hard time fragmenting the filesystem
enough to produce a reasonable extent (I've basically only got to a two
level tree with two entries at the top).  Is there an easy way of
producing a high depth extent tree for a 20MB file?
Create a series of 4kB files numbered sequentially, each 4kB in size
until you fill the partition.  Delete the even numbered ones.  Create a
20MB file.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help