OSDN Git Service

resize2fs: Fix double bumping of directory in-use counts
authorTheodore Ts'o <tytso@mit.edu>
Mon, 18 Aug 2008 03:20:16 +0000 (23:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 Aug 2008 03:20:16 +0000 (23:20 -0400)
commitc89f1b4ca5020c9ae847b13a9a680e05fe2ce5d9
treefcadba10792854dadadbf550f52f1f77ac56ba9a
parent0ea910997b3c2ba09b65b852b9bb4dd7b4d68999
resize2fs: Fix double bumping of directory in-use counts

When moving directories into new block groups (which would only happen
when shrinking a filesystem), resize2fs would increase the directory
in-use count by 2 times the necessary value, due to a change in
ext2fs_inode_alloc_stats() made in e2fsprogs 1.26.  This is largely
harmless, but it does result in a filesystem corruption for e2fsck to
fix.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c