From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 20 Jan 2021 16:46:44 -0500 Subject: [PATCH] Fix squashfs failing to load sparse files In-Reply-To: References: Message-ID: <20210120214644.GD9782@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 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: