]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: fat: add test of non-contiguous file reads
authorStephen Warren <swarren@wwwdotorg.org>
Sat, 3 Oct 2015 19:56:47 +0000 (13:56 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 24 Oct 2015 17:50:34 +0000 (13:50 -0400)
commit4a28274227d085d77d46709dc94ccc3d69610f53
tree3f8d07a1e4ab9cf7b938a36cdeb145d9287d380b
parent7861204c9af7fec1ea9b41541c272516235a6c93
test: fat: add test of non-contiguous file reads

In my patch series to replace fs/fat with "ff.c", I enhanced ff.c to
optimize file reading, so that reads of contiguous clusters are submitted
to the IO device as a single read. This test attempts to torture-test
edge-cases of that enhancement.

BTW, the only way I found to validate that this script actually does
create non-contiguous files was to manually inspect the FAT bitmap in a
hex dump of the FAT image. hdparm --fibmap doesn't work on loop-mounted
filesystems. filefrag -v -e seems to lie about files being contiguous
when they aren't.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
test/fs/fat-noncontig-test.sh [new file with mode: 0755]