16ffbacc8ae687d89366175752469372ffe3c142 |
|
15-Apr-2017 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: update quota when optimizing the extent tree If quota is enabled, optimizing the extent tree wouldn't update the in-memory quota statistics, so that a subsequent e2fsck run would show that the quota usage statistics on disk were incorrect. Google-Bug-Id: 36391645 Signed-off-by: Theodore Ts'o <tytso@mit.edu> (cherry picked from commit 96c8e668f7c780dccbc12b7ecc4cac9a5db2bc97) Change-Id: I429a0ac64b1cc9e5a288f61ba3942e391e575013
/external/e2fsprogs/e2fsck/extents.c
|
86f3b6cf98a72c6dad0738e3af2512ddcbd49be9 |
|
24-Oct-2015 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsck: clean up feature test macros with predicate functions Create separate predicate functions to test/set/clear feature flags, thereby replacing the wordy old macros. Furthermore, clean out the places where we open-coded feature tests. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/extents.c
|
63cd76d6ac3bb7f90c583f240fc75e657610f2ea |
|
17-May-2015 |
Darrick J. Wong <darrick.wong@oracle.com> |
misc: fix Coverity bugs Fix Coverity bugs 1297093, 1297096, 1297489, 1297491, 1297493, 1297506, 1297507, 1297514, 1297516, and 1297517. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/extents.c
|
e228d700d5b59d2d2e0e3a54c4c76b66ed71afdf |
|
02-Apr-2015 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsck: rebuild sparse extent trees & convert non-extent ext3 files Teach e2fsck to (re)construct extent trees. This enables us to do either of the following: compress a highly sparse extent tree into fewer ETB blocks; or convert a ext3-style block mapped file to an extent file. The reconstruction is performed during pass 1E or 3A, as detailed below. For files that are already extent based, this algorithm will automatically run (pending user approval) if pass1 determines either (1) that a whole level of extent tree will fit into a higher level of the tree; (2) that the size of any level can be reduced by at least one ETB block; or (3) the extent tree is unnecessarily deep. It will not run at all if errors are found and the user declines to fix the errors. The option "-E bmap2extent" can be used to force e2fsck to convert all block map files to extent trees, and to rebuild all extent files' extent trees. After conversion, files larger than 12 blocks should be defragmented to eliminate empty holes where a block lives. The extent tree constructor is pretty dumb -- it creates a list of leaf extents (adjacent extents are collapsed), marks all indirect blocks / ETB blocks free, installs a new extent tree root in the inode, then loads the leaf extents into the tree. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/extents.c
|