Re: about EXT3_SUPER_MAGIC

2010-11-13 Thread Manish Katiyar
On Sat, Nov 13, 2010 at 8:29 PM, Onkar Mahajan  wrote:
> What is EXT3_SUPER_MAGIC ? How is it arrived at ?

There is no formula... it is just an identifier. Most of the times it
is the name of filesystem in hex.

> I am writing a file system for which I am referring to
> the ext3 code... I am not able to arrive at a magic number
> for my filesystem please help

Have you put a name for your filesystem... else you can try 0x6d796673 :-)

>
> #define EXT3_SUPER_MAGIC    0xEF53 < How this is arrived at ?
>
>
> Regards,
> Onkar
>



-- 
Thanks -
Manish
==
[$\*.^ -- I miss being one of them
==

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: about EXT3_SUPER_MAGIC

2010-11-13 Thread arshad hussain

On 11/14/2010 9:59 AM, Onkar Mahajan wrote:

What is EXT3_SUPER_MAGIC ?

A signature for identification.
How is it arrived at ?
There is no formula for it. It can be anything.
UFS has signature (magic) which is bill joy's
birth date.

I am writing a file system for which I am referring to
the ext3 code... I am not able to arrive at a magic number

Magic is normally under superblock. So, for your FS your
magic can be anything and it can take any number of bytes of
you choice. Normally magic is limited to 4-8 bytes.

for my filesystem please help

#define EXT3_SUPER_MAGIC0xEF53 < How this is arrived at ?


Regards,
Onkar


Thanks


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



about EXT3_SUPER_MAGIC

2010-11-13 Thread Onkar Mahajan
What is EXT3_SUPER_MAGIC ? How is it arrived at ?
I am writing a file system for which I am referring to
the ext3 code... I am not able to arrive at a magic number
for my filesystem please help

#define EXT3_SUPER_MAGIC0xEF53 < How this is arrived at ?


Regards,
Onkar