From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] ubifs: Fix ubifsload when using ZLIB
Date: Fri, 07 Sep 2012 10:00:22 +0200 [thread overview]
Message-ID: <5049A996.5050301@gmail.com> (raw)
In-Reply-To: <1346857514-14742-1-git-send-email-veli-pekka.peltola@bluegiga.com>
On 05.09.2012 17:05, Veli-Pekka Peltola wrote:
> Using ZLIB compression with UBIFS fails if last data node is not a size of
> UBIFS_BLOCK_SIZE (4096 bytes).
>
> Easiest way to test this is trying to read a file smaller than 4k:
> => ubifsload 41000000 /etc/fstab
> Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
> UBIFS error (pid 0): read_block: bad data node (block 0, inode 2506)
> UBIFS error (pid 0): do_readpage: cannot read page 0 of inode 2506, error -22
> Error reading file '/etc/fstab'
> /etc/fstab not found!
> exit not allowed from main input shell.
> =>
>
> With this patch:
>
> => ubifsload 41000000 /etc/fstab
> Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
> Done
> =>
>
> Signed-off-by: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
> Cc: kmpark at infradead.org
Tested-by: Andreas Bie?mann <andreas.devel@googlemail.com>
next prev parent reply other threads:[~2012-09-07 8:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 15:05 [U-Boot] [PATCH v2] ubifs: Fix ubifsload when using ZLIB Veli-Pekka Peltola
2012-09-07 8:00 ` Andreas Bießmann [this message]
2012-09-10 9:39 ` Stefan Roese
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=5049A996.5050301@gmail.com \
--to=andreas.devel@googlemail.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