
On 3 October 2015 at 20:56, Stephen Warren swarren@wwwdotorg.org wrote:
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
v2:
- Check for missing pre-requisite binaries, and print an explicit error message if any are missing.
- Create mount-point rather than assuming it exists.
- Add a comment describing the script's operation.
test/fs/fat-noncontig-test.sh | 113 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100755 test/fs/fat-noncontig-test.sh
Reviewed-by: Simon Glass sjg@chromium.org Tested-by: Simon Glass sjg@chromium.org