]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - misc/mke2fs.c
mke2fs: fix setting bad blocks in the block bitmap
authorLi Dongyang <dongyangli@ddn.com>
Wed, 20 Nov 2019 04:35:24 +0000 (04:35 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jan 2020 18:41:35 +0000 (13:41 -0500)
commitd23f88ebaafbb5141822f5998a4417abdb8ffb36
tree60a51d8a80ee39aa9376312169ca533cb5d839dd
parent6607eaad265cef529d81c31fef936c56e3157d85
mke2fs: fix setting bad blocks in the block bitmap

We mark the bad blocks as used on fs->block_map before allocating
group tables.  Don't translate the block number to cluster number when
doing this, the fs->block_map is still a block-granularity allocation
map, it will be coverted later by ext2fs_convert_subcluster_bitmap().

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c