u-boot-brain/fs
Campbell Suter 9dba07f143 Fix squashfs failing to load sparse files
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>
2021-01-20 14:01:44 -05:00
..
btrfs fs: btrfs: volumes: prevent overflow for multiplying 2021-01-20 14:01:08 -05:00
cbfs cbfs: Don't require the CBFS size with cbfs_init_mem() 2020-05-27 14:40:09 +08:00
cramfs common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
ext4 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fat fs/fat: implement fsuuid command 2020-12-31 14:32:27 +01:00
jffs2 common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
reiserfs part: Drop disk_partition_t typedef 2020-05-18 17:33:33 -04:00
sandbox common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
squashfs Fix squashfs failing to load sparse files 2021-01-20 14:01:44 -05:00
ubifs common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
yaffs2 common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
zfs common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fs_internal.c fs: convert error and debug messages to log 2020-09-06 21:21:41 +02:00
fs.c efi_loader: setting boot device 2021-01-13 02:38:00 +01:00
Kconfig fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00
Makefile fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00