U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] Fix squashfs failing to load sparse files
Date: Wed, 20 Jan 2021 16:46:44 -0500	[thread overview]
Message-ID: <20210120214644.GD9782@bill-the-cat> (raw)
In-Reply-To: <d1ee56b7-0e73-145d-6b8f-d208d0557938@snapit.group>

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 <campbell@snapit.group>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20210120/cf53ff9f/attachment.sig>

      reply	other threads:[~2021-01-20 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23  2:40 [PATCH] Fix squashfs failing to load sparse files Campbell Suter
2021-01-20 21:46 ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210120214644.GD9782@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox