diff --git a/ChangeLog b/ChangeLog index 00126d41c..b59153618 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-06-17 Jochen Hoenicke + + * stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache. + This fixes a problem where files from other partitions appear at + the wrong partition. Problem reported by Johan Regin. + 2003-05-04 Yoshinori K. Okuji * docs/grub.texi (partnew): Fixed the inconsistency between the diff --git a/stage2/fsys_reiserfs.c b/stage2/fsys_reiserfs.c index 1157949cb..ed9d68f17 100644 --- a/stage2/fsys_reiserfs.c +++ b/stage2/fsys_reiserfs.c @@ -613,6 +613,9 @@ reiserfs_mount (void) INFO->cached_slots = (FSYSREISER_CACHE_SIZE >> INFO->fullblocksize_shift) - 1; + /* Clear node cache. */ + memset (INFO->blocks, 0, sizeof (INFO->blocks)); + if (super.s_blocksize < FSYSREISER_MIN_BLOCKSIZE || super.s_blocksize > FSYSREISER_MAX_BLOCKSIZE || (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize)