From: Pavel Bartusek <pba@sysgo.com>
To: Reiserfs-List@namesys.com
Subject: Bugs on big endian systems
Date: Wed, 03 Mar 2004 14:01:57 +0100 [thread overview]
Message-ID: <4045D745.8070204@sysgo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Hi list,
The attached patch will fix the bugs which appears only on big endian
systems in the kernel 2.4.25.
regards
Pavel Bartusek
Software Engineering
SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Lise-Meitner-Str.15
89081 Ulm, Germany
Voice: +49-731-9533-1295
FAX: +49-731-94683-10
www.sysgo.com | www.elinos.com | www.osek.de
[-- Attachment #2: big_endian_fixup.patch --]
[-- Type: text/plain, Size: 1371 bytes --]
--- linux.ori/fs/reiserfs/journal.c Mon Aug 25 13:44:43 2003
+++ linux/fs/reiserfs/journal.c Wed Mar 3 13:26:23 2004
@@ -2094,7 +2094,7 @@
/* make sure that journal matches to the super block */
if (is_reiserfs_jr(rs) &&
- jh->jh_journal.jp_journal_magic != sb_jp_journal_magic(rs)) {
+ le32_to_cpu (jh->jh_journal.jp_journal_magic) != sb_jp_journal_magic(rs)) {
char jname[ 32 ];
char fname[ 32 ];
@@ -2102,7 +2102,7 @@
strcpy( fname, kdevname( p_s_sb->s_dev ) );
printk("journal-460: journal header magic %x (device %s) does not "
"match magic found in super block %x (device %s)\n",
- jh->jh_journal.jp_journal_magic, jname,
+ le32_to_cpu (jh->jh_journal.jp_journal_magic), jname,
sb_jp_journal_magic(rs), fname);
brelse (bhjh);
goto free_and_return;
--- linux.ori/include/linux/reiserfs_fs.h Mon Aug 25 13:44:44 2003
+++ linux/include/linux/reiserfs_fs.h Wed Mar 3 13:25:45 2004
@@ -219,7 +219,7 @@
#define SB_ONDISK_JOURNAL_DEVICE(s) \
le32_to_cpu ((SB_ONDISK_JP(s)->jp_journal_dev))
#define SB_ONDISK_RESERVED_FOR_JOURNAL(s) \
- le32_to_cpu ((SB_V1_DISK_SUPER_BLOCK(s)->s_reserved_for_journal))
+ le16_to_cpu ((SB_V1_DISK_SUPER_BLOCK(s)->s_reserved_for_journal))
#define is_block_in_log_or_reserved_area(s, block) \
block >= SB_JOURNAL_1st_RESERVED_BLOCK(s) \
next reply other threads:[~2004-03-03 13:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-03 13:01 Pavel Bartusek [this message]
2004-03-03 21:29 ` Bugs on big endian systems Jeff Mahoney
2004-03-04 0:21 ` Hans Reiser
2004-03-04 1:55 ` Richard Heycock
2004-03-04 1:59 ` Pierre Abbat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4045D745.8070204@sysgo.com \
--to=pba@sysgo.com \
--cc=Reiserfs-List@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.