]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache.
authorjochen <jochen@localhost>
Tue, 17 Jun 2003 08:08:03 +0000 (08:08 +0000)
committerjochen <jochen@localhost>
Tue, 17 Jun 2003 08:08:03 +0000 (08:08 +0000)
This fixes a problem where files from other partitions appear at
the wrong partition.  Problem reported by Johan Regin.

ChangeLog
stage2/fsys_reiserfs.c

index 00126d41ccadd8e4936588abe73047046be27bd7..b59153618568e9f6e4432949b43c67c4054d6815 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-17  Jochen Hoenicke  <jochen@gnu.org>
+
+       * 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  <okuji@enbug.org>
 
        * docs/grub.texi (partnew): Fixed the inconsistency between the
index 1157949cb9afd41cdc7a37cd5a2a2287fb1955a4..ed9d68f172fe03aae66ea9a4d7c84fa2a39ea09f 100644 (file)
@@ -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)