Skip to content
Snippets Groups Projects
  1. Oct 24, 2015
    • Stephen Warren's avatar
      test: fat: add test of non-contiguous file reads · 4a282742
      Stephen Warren authored
      
      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: default avatarStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      4a282742
Loading