On Mon, Nov 23, 2020 at 03:40:03PM +1300, Campbell Suter wrote: > SquashFS supports sprase blocks in files - that is, if a given block is > composed only of zeros, it's not written to the output file to save > space and it's on-disk length field is set to zero to indicate that. > > Previously the squashfs driver did not recognise that, and would attempt > to read and decompress a zero-sized block, which obviously failed. > > The following command may be used to create a file for testing: > > cat <(dd if=/dev/urandom of=/dev/stdout bs=1M count=1) \ > <(dd if=/dev/zero of=/dev/stdout bs=1M count=1) \ > <(dd if=/dev/urandom of=/dev/stdout bs=1k count=200) >test_file > > Signed-off-by: Campbell Suter <[email protected]>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: PGP signature

