mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* 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:
1 parent
d8544dae43
commit
61b109a5ca
2 files changed
+9
No files matched your search
@@ -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>
|
2003-05-04 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
* docs/grub.texi (partnew): Fixed the inconsistency between the
|
* docs/grub.texi (partnew): Fixed the inconsistency between the
|
||||||
|
|||||||
@@ -613,6 +613,9 @@ reiserfs_mount (void)
|
|||||||
INFO->cached_slots =
|
INFO->cached_slots =
|
||||||
(FSYSREISER_CACHE_SIZE >> INFO->fullblocksize_shift) - 1;
|
(FSYSREISER_CACHE_SIZE >> INFO->fullblocksize_shift) - 1;
|
||||||
|
|
||||||
|
/* Clear node cache. */
|
||||||
|
memset (INFO->blocks, 0, sizeof (INFO->blocks));
|
||||||
|
|
||||||
if (super.s_blocksize < FSYSREISER_MIN_BLOCKSIZE
|
if (super.s_blocksize < FSYSREISER_MIN_BLOCKSIZE
|
||||||
|| super.s_blocksize > FSYSREISER_MAX_BLOCKSIZE
|
|| super.s_blocksize > FSYSREISER_MAX_BLOCKSIZE
|
||||||
|| (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize)
|
|| (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize)
|
||||||
|
|||||||
Reference in new issue
Block a user