lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 5 Nov 2006 11:01:04 +0800
From:	"Chuanwen Wu" <wcw8410@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: How to change my fs's magic number?

Hi,everybody!

I am learning how to add my file system.
Now ,i have add my fs called "myext2" with the magic number 0x6666
(" #define MYEXT2_SUPER_MAGIC      0x6666" in the file
include/linux/myext2_fs.h)to the kernel .
Myext2 is similar with ext2 but the name.
And i compiled kernel successfully.
And then i created my "myfs" in the type myext2

#dd if=/dev/zero of=myfs bs=1M count=1
#mkfs.ext2 myfs

The problem is after "#mkfs.ext2 myfs" ,how i can change myfs's magic
number to 0x6666 but not 0xEF53 which is used by ext2?

Thanks in advanced!
-- 
wcw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists