Whamcloud - gitweb
e2fsprogs: add ext2fs_group_blocks_count helper
authorEric Sandeen <sandeen@redhat.com>
Fri, 16 Sep 2011 13:21:53 +0000 (09:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 13:28:43 +0000 (09:28 -0400)
commit98f4547198b369bef7e41eb7ce4a16855726c393
treebcc3905013eb56a8698060ca1c1d375286912e54
parent65b7a463da3b8f7ce0892be579f34ba4cf66456e
e2fsprogs: add ext2fs_group_blocks_count helper

Code to count the number of blocks in the last partial
group is cut and pasted around the e2fsprogs codebase
a few times.

Making this a helper function should improve matters.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/alloc_sb.c
lib/ext2fs/blknum.c
lib/ext2fs/closefs.c
lib/ext2fs/ext2fs.h
resize/online.c
resize/resize2fs.c