diff options
| author | Libing Zhou <[email protected]> | 2020-10-16 03:13:42 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-10-16 18:11:22 +0000 |
| commit | d9bc85de46cad90851c346b592005090674b7669 (patch) | |
| tree | 9bc50688e46d1abe7af63709cabe8fef6fdb4c01 /lib/strncpy_from_user.c | |
| parent | ubsan: introduce CONFIG_UBSAN_LOCAL_BOUNDS for Clang (diff) | |
| download | kernel-d9bc85de46cad90851c346b592005090674b7669.tar.gz kernel-d9bc85de46cad90851c346b592005090674b7669.zip | |
ROMFS: support inode blocks calculation
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.
Signed-off-by: Libing Zhou <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: David Howells <[email protected]>
Cc: Al Viro <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
