* [2.4] [PATCH] reiserfs: fixup transaction size check for old filesystems
@ 2003-03-28 9:17 Oleg Drokin
0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-03-28 9:17 UTC (permalink / raw)
To: marcelo, linux-kernel
Hello!
It turned out that recently introduced additional journal check
breaks journal replays on filesystems created with old reiserfs
tools that do not write journal parameters into superblock.
Please apply following patch that fixes the problem.
Thank you.
Bye,
Oleg
===== fs/reiserfs/journal.c 1.26 vs edited =====
--- 1.26/fs/reiserfs/journal.c Thu Mar 13 14:52:15 2003
+++ edited/fs/reiserfs/journal.c Tue Mar 25 16:38:55 2003
@@ -1401,7 +1401,7 @@
*newest_mount_id) ;
return -1 ;
}
- if ( le32_to_cpu(desc->j_len) > sb_journal_trans_max(SB_DISK_SUPER_BLOCK(p_s_sb)) ) {
+ if ( le32_to_cpu(desc->j_len) > JOURNAL_TRANS_MAX ) {
reiserfs_warning("journal-2018: Bad transaction length %d encountered, ignoring transaction\n", le32_to_cpu(desc->j_len));
return -1 ;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-28 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28 9:17 [2.4] [PATCH] reiserfs: fixup transaction size check for old filesystems Oleg Drokin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox