u-boot/fs
Veli-Pekka Peltola 8044c1387f ubifs: Fix ubifsload when using ZLIB
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@infradead.org
Tested-by: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
2012-09-10 11:37:42 +02:00
..
cramfs gunzip: rename z{alloc, free} to gz{alloc, free} 2012-04-30 16:54:51 +02:00
ext2 ext2fs: fix warning: 'blocknxt' may be used uninitialized with gcc 4.2 2012-08-07 20:52:42 +02:00
fat FAT: Simplify get_contents 2012-09-02 17:22:43 +02:00
fdos Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
jffs2 linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
reiserfs fs/reiserfs/reiserfs.c: Fix compiler warning 2011-12-12 14:25:30 +01:00
ubifs ubifs: Fix ubifsload when using ZLIB 2012-09-10 11:37:42 +02:00
yaffs2 u-boot yaffs2: Fix compilation warnings 2012-09-02 16:47:50 +02:00
zfs zfs: Add ZFS filesystem support 2012-08-09 23:42:20 +02:00
Makefile zfs: Add ZFS filesystem support 2012-08-09 23:42:20 +02:00