]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: add a way to check the theoretical maximum extent tree depth
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 14 Dec 2014 02:13:40 +0000 (21:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 Dec 2014 02:13:40 +0000 (21:13 -0500)
commitffe1b28dea615cf2abf3d9b7ff3f97048eb44c1b
treeac3e423ceeabd5d56cbc95df341df0d4363cbf6d
parent6509eebb6365de75915a197a4672442d4b5a230e
libext2fs: add a way to check the theoretical maximum extent tree depth

Add an API so that client programs can discover a reasonable maximum
extent tree depth.  This will eventually be used by e2fsck as one of
the criteria to decide if an extent-based file should have its extent
tree rebuilt.

Turn some related magic numbers into constants while we're at it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/ext3_extents.h
lib/ext2fs/extent.c