]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - lib/ext2fs/initialize.c
libext2fs: change fs->clustersize to fs->cluster_ratio_bits
[thirdparty/e2fsprogs.git] / lib / ext2fs / initialize.c
index c109d08edb9b4099543e355dc0984bbf0f2fce19..b9d45aefcd7219cac281a76faf34c63165ead8ac 100644 (file)
@@ -178,7 +178,8 @@ errcode_t ext2fs_initialize(const char *name, int flags,
        super->s_creator_os = CREATOR_OS;
 
        fs->blocksize = EXT2_BLOCK_SIZE(super);
-       fs->clustersize = EXT2_CLUSTER_SIZE(super);
+       fs->cluster_ratio_bits = super->s_log_cluster_size -
+               super->s_log_block_size;
 
        /* default: (fs->blocksize*8) blocks/group, up to 2^16 (GDT limit) */
        set_field(s_blocks_per_group, fs->blocksize * 8);