u-boot-brain/fs/ext4
Marek Szyprowski 1c9f8f6412 ext4: fix calculating inode blkcount for non-512 blocksize filesystems
The block count entry in the EXT4 filesystem disk structures uses
standard 512-bytes units for most of the typical files. The only
exception are HUGE files, which use the filesystem block size, but those
are not supported by uboot's EXT4 implementation anyway. This patch fixes
the EXT4 code to use proper unit count for inode block count. This fixes
errors reported by fsck.ext4 on disks with non-standard (i.e. 4KiB, in
case of new flash drives) PHYSICAL block size after using 'ext4write'
uboot's command.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
2019-07-18 11:31:24 -04:00
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4_common.c ext4: fix calculating inode blkcount for non-512 blocksize filesystems 2019-07-18 11:31:24 -04:00
ext4_common.h fs: ext4: constify the buffer passed to write functions 2019-04-09 15:34:15 -04:00
ext4_journal.c fs: ext4: cache extent data 2019-04-09 15:34:15 -04:00
ext4_journal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4_write.c ext4: fix calculating inode blkcount for non-512 blocksize filesystems 2019-07-18 11:31:24 -04:00
ext4fs.c fs: ext4: cache extent data 2019-04-09 15:34:15 -04:00
Kconfig fs: Migrate ext4 to Kconfig 2018-01-22 16:43:30 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00