Re: Magic Number for New File system

From: Mike Waychison
Date: Fri Dec 17 2004 - 03:53:09 EST

Hash: SHA1

Bhattiprolu, Ravikumar (Ravikumar) wrote:
> Hi All,
> We are planning to write a new file system for our requirements. Is
> there any standard way to allocate a magic number for this new file
> system?

Have a cat walk across your numpad. The value is pretty meaningless
other than as a unique identifier for your fstype. See statfs(2) for a
list of known MAGIC numbers.

> Also how to go about writing the new file system?

For a block device backed fs, see fs/minix/* for a simple enough
example. Another good example for a much simpler fs is fs/ramfs/inode.c

- --
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice

NOTICE: The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at