From: Tom Rini Date: Sat, 24 Oct 2015 17:15:41 -0400 Subject: [U-Boot] [U-Boot, V2, 2/3] test: fat: add test of non-contiguous file reads In-Reply-To: <1443902208-21220-2-git-send-email-swarren@wwwdotorg.org> References: <1443902208-21220-2-git-send-email-swarren@wwwdotorg.org> Message-ID: <20151024211541.GR23893@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Oct 03, 2015 at 01:56:47PM -0600, Stephen Warren 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 > Reviewed-by: Simon Glass > Tested-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: