]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - resize/resize2fs.c
ext2fs: move calculate_summary_stats to ext2fs lib
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Wed, 20 Jan 2021 21:26:27 +0000 (13:26 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 15:53:46 +0000 (10:53 -0500)
commit895e8e33beed102189922418ba611cc7528f45e3
treeab8882de4989eefba8d5a1b8db43f343b9c1a477
parent37d56864052e2d4c596036d505e8a4fc7af49c4b
ext2fs: move calculate_summary_stats to ext2fs lib

The function calculate_summary_stats sets the global metadata of the
file system. Tune2fs had this function defined statically in
tune2fs.c. Fast commit replay needs this function to set global
metadata at the end of the replay phase. So, move this function to
libext2fs.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/initialize.c
misc/tune2fs.c
resize/resize2fs.c