Re: Magic Number for New File system

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


-----BEGIN PGP SIGNED MESSAGE-----
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBwp3/dQs4kOxk3/MRAnR0AJ4vOWqcG6L192xmsaO3w03Vc5qQhACbBthn
IDjz1oO7q0mofmP1uuitv/E=
=u+W+
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/