From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 18 Jul 2019 19:56:27 -0400 Subject: [U-Boot] [PATCH] ext4: fix calculating inode blkcount for non-512 blocksize filesystems In-Reply-To: <20190621133251.451-1-m.szyprowski@samsung.com> References: <20190621133251.451-1-m.szyprowski@samsung.com> Message-ID: <20190718235627.GS20116@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 21, 2019 at 03:32:51PM +0200, Marek Szyprowski wrote: > 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 > Reviewed-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: