[Tux3] Super magic

Daniel Phillips phillips at phunq.net
Sun May 17 21:35:06 PDT 2009


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)) {

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list