* stage2/fsys_reiserfs.c (reiserfs_mount): Don't look at
the superblock field s_journal_block_count anymore. It used to contain 0, it never contained a valid value, and now I have a report that it can contain an invalid value.
This commit is contained in:
parent
49312f5981
commit
62e7ed8b60
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2001-10-10 Jochen Hoenicke <jochen@gnu.org>
|
||||||
|
|
||||||
|
* stage2/fsys_reiserfs.c (reiserfs_mount): Don't look at
|
||||||
|
the superblock field s_journal_block_count anymore. It used
|
||||||
|
to contain 0, it never contained a valid value, and now I
|
||||||
|
have a report that it can contain an invalid value.
|
||||||
|
Bug reported by Jim Caley <caley@chesco.com>.
|
||||||
|
|
||||||
2001-09-24 Jochen Hoenicke <jochen@gnu.org>
|
2001-09-24 Jochen Hoenicke <jochen@gnu.org>
|
||||||
|
|
||||||
* stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to
|
* stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to
|
||||||
|
|
|
@ -620,9 +620,10 @@ reiserfs_mount (void)
|
||||||
if (super.s_journal_block != 0)
|
if (super.s_journal_block != 0)
|
||||||
{
|
{
|
||||||
INFO->journal_block = super.s_journal_block;
|
INFO->journal_block = super.s_journal_block;
|
||||||
INFO->journal_block_count = super.s_journal_block_count;
|
/* I am not using s_journal_block_count here, because
|
||||||
if (INFO->journal_block_count == 0)
|
* that field doesn't contain any sane value.
|
||||||
INFO->journal_block_count = super.s_orig_journal_size;
|
*/
|
||||||
|
INFO->journal_block_count = super.s_orig_journal_size;
|
||||||
if (! is_power_of_two (INFO->journal_block_count))
|
if (! is_power_of_two (INFO->journal_block_count))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue