Whamcloud - gitweb
LU-4017 e2fsprogs: always read full inode structure 69/18569/20
authorWang Shilong <wshilong@ddn.com>
Wed, 24 Feb 2016 11:33:13 +0000 (19:33 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 9 Jun 2016 20:54:37 +0000 (20:54 +0000)
commitbad5ce5ca531b65116edfc9c79abc65b1c6ab9ed
tree86da7840f9478d4852b63ab10906d1f93edad8b4
parent6448ad0247a6ebf272b028cacd5d313cdb6822d1
LU-4017 e2fsprogs: always read full inode structure

Project quota need use some extra field of inode for
computing quota accounting, this patch tries to use
ext2fs_get_next_inode_full() everywhere to read full
inode into memeory, also fixes a bug that only copy small
inode in the function.

Always use ext2fs_read_inode_full() internally reading
and storing an inode instead of ext2fs_read_inode().
At least for the tools in e2fsprogs they will always have
the full inode data, though we can't control other
e2fsprogs users.

This should not hurt performance, since the full inode
block is always read from disk anyway, and in some cases
it may improve performance because it won't do the
extra reads from disk

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: If545e37587701ac60933e9b09162429d874254ef
Reviewed-on: http://review.whamcloud.com/18569
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
17 files changed:
debugfs/icheck.c
debugfs/lsdel.c
debugfs/ncheck.c
e2fsck/e2fsck.h
e2fsck/iscan.c
e2fsck/journal.c
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/scantest.c
e2scan/e2scan.c
lib/ext2fs/bmove.c
lib/ext2fs/inode.c
lib/ext2fs/tst_iscan.c
lib/quota/mkquota.c
misc/e2image.c
misc/tune2fs.c
resize/resize2fs.c