mirror of https://github.com/vitalif/e2fsprogs
Fix bug where mke2fs was incorrectly checking
the argument to the -g option, if the default block size is used. (Addresses Debian bug #188319)bitmap-optimize
parent
ccbed85afe
commit
5e804b72b6
|
@ -7,8 +7,10 @@ e2fsprogs (1.32+1.33-WIP-2003.03.30-3) unstable; urgency=low
|
||||||
* Add libblkid1-udeb package for the Debian Installer.
|
* Add libblkid1-udeb package for the Debian Installer.
|
||||||
* Use the SS_READLINE_PATH environment variable to control the search
|
* Use the SS_READLINE_PATH environment variable to control the search
|
||||||
for a suitable readine library.
|
for a suitable readine library.
|
||||||
|
* Fix bug in mke2fs, which was was incorrectly checking the argument
|
||||||
|
to the -g option if the default block size is used. (Closes: #188319)
|
||||||
|
|
||||||
-- Theodore Y. Ts'o <tytso@mit.edu> Fri, 11 Apr 2003 12:55:34 -0400
|
-- Theodore Y. Ts'o <tytso@mit.edu> Fri, 11 Apr 2003 13:45:18 -0400
|
||||||
|
|
||||||
e2fsprogs (1.32+1.33-WIP-2003.03.30-2) unstable; urgency=low
|
e2fsprogs (1.32+1.33-WIP-2003.03.30-2) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
2003-04-11 Theodore Ts'o <tytso@mit.edu>
|
2003-04-11 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
|
* mke2fs.c (PRS): Fix bug where mke2fs was incorrectly checking
|
||||||
|
the argument to the -g option, if the default block size
|
||||||
|
is used. (Addresses Debian bug #188319)
|
||||||
|
|
||||||
* tune2fs.8.in, mke2fs.8.in: Document the dir_index filesystem
|
* tune2fs.8.in, mke2fs.8.in: Document the dir_index filesystem
|
||||||
feature which can be used with the -O option.
|
feature which can be used with the -O option.
|
||||||
|
|
||||||
|
|
|
@ -791,7 +791,6 @@ static void PRS(int argc, char *argv[])
|
||||||
int c;
|
int c;
|
||||||
int size;
|
int size;
|
||||||
char * tmp;
|
char * tmp;
|
||||||
blk_t group_blk_max = 8192;
|
|
||||||
int blocksize = 0;
|
int blocksize = 0;
|
||||||
int inode_ratio = 0;
|
int inode_ratio = 0;
|
||||||
int inode_size = 0;
|
int inode_size = 0;
|
||||||
|
@ -889,7 +888,6 @@ static void PRS(int argc, char *argv[])
|
||||||
blocksize);
|
blocksize);
|
||||||
param.s_log_block_size =
|
param.s_log_block_size =
|
||||||
int_log2(blocksize >> EXT2_MIN_BLOCK_LOG_SIZE);
|
int_log2(blocksize >> EXT2_MIN_BLOCK_LOG_SIZE);
|
||||||
group_blk_max = blocksize * 8;
|
|
||||||
break;
|
break;
|
||||||
case 'c': /* Check for bad blocks */
|
case 'c': /* Check for bad blocks */
|
||||||
case 't': /* deprecated */
|
case 't': /* deprecated */
|
||||||
|
@ -1177,7 +1175,7 @@ static void PRS(int argc, char *argv[])
|
||||||
|
|
||||||
if (param.s_blocks_per_group) {
|
if (param.s_blocks_per_group) {
|
||||||
if (param.s_blocks_per_group < 256 ||
|
if (param.s_blocks_per_group < 256 ||
|
||||||
param.s_blocks_per_group > group_blk_max) {
|
param.s_blocks_per_group > 8 * EXT2_BLOCK_SIZE(¶m)) {
|
||||||
com_err(program_name, 0,
|
com_err(program_name, 0,
|
||||||
_("blocks per group count out of range"));
|
_("blocks per group count out of range"));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue