ROMFS: support inode blocks calculation

Linux Kernel / Linux Kernel - Libing Zhou [nokia-sbell.com] - 16 October 2020 18:11 UTC

When use 'stat' tool to display file status, the 'Blocks' field always in '0', this is not good for tool 'du'(e.g.: busybox 'du'), it always output '0' size for the files under ROMFS since such tool calculates number of 512B Blocks.

This patch calculates approx. number of 512B blocks based on inode size.

d9bc85de46ca ROMFS: support inode blocks calculation
fs/romfs/super.c | 1 +
1 file changed, 1 insertion(+)

Upstream: git.kernel.org


  • Share