]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - misc/mke2fs.c
libext2fs: change fs->clustersize to fs->cluster_ratio_bits
authorTheodore Ts'o <tytso@mit.edu>
Sat, 4 Jun 2011 14:20:47 +0000 (10:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 4 Jun 2011 21:43:10 +0000 (17:43 -0400)
commit1da5ef707904cf99300a0fb36b9ae3b29dbc8bde
tree4df7edba6286ccfc9f78aabc4ea506179913d9ad
parentae9e37cd114385764864518057ff854b3f335440
libext2fs: change fs->clustersize to fs->cluster_ratio_bits

The log2 of the ratio of cluster size to block size is far more useful
than just storing the cluster size.  So make this change, and then
define basic utility macros: EXT2FS_CLUSTER_RATIO(),
EXT2FS_CLUSTER_MASK(), EXT2FS_B2C(), EXT2FS_C2B(), and
EXT2FS_NUM_B2C().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/initialize.c
lib/ext2fs/openfs.c
misc/mke2fs.c