* 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.
This commit is contained in:
parent
d8544dae43
commit
61b109a5ca
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue