[prev in list] [next in list] [prev in thread] [next in thread]
List: tux3
Subject: [Tux3] Super magic
From: phillips () phunq ! net (Daniel Phillips)
Date: 2009-05-18 4:35:06
Message-ID: 200905172135.07312.phillips () phunq ! net
[Download RAW message or body]
Endian mistake in the above patch pointed out by Hirofumi, corrected
here:
diff -r cb5655728089 user/kernel/super.c
--- a/user/kernel/super.c Fri Mar 27 16:12:32 2009 +0900
+++ b/user/kernel/super.c Sun May 17 21:34:31 2009 -0700
@@ -137,7 +137,6 @@ static int tux3_fill_super(struct super_
sbi->vfs_sb = sb;
sb->s_fs_info = sbi;
sb->s_maxbytes = MAX_LFS_FILESIZE;
- sb->s_magic = TUX3_SUPER_MAGIC;
sb->s_op = &tux3_super_ops;
sb->s_time_gran = 1;
@@ -162,6 +161,7 @@ static int tux3_fill_super(struct super_
}
goto error;
}
+ sb->s_magic = from_be_u32(*(be_u32 *)sbi->super.magic);
if (sbi->blocksize != blocksize) {
if (!sb_set_blocksize(sb, sbi->blocksize)) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic