Good day, all,
        When I use the file command on a file that contains an ext2/ext3 
filesystem, the file command returns:

[wstearns@sparrow test-resize]$ ls -al emptyfs.ext3.100
-rw-------    1 wstearns wstearns 104857600 Apr  2 13:57 emptyfs.ext3.100
[wstearns@sparrow test-resize]$ file emptyfs.ext3.100
emptyfs.ext3.100: Linux rev 1.0 ext3 filesystem data

        The signature comes from Andreas Dilger's contribution to 
/usr/share/magic:

# ext2/ext3 filesystems - Andreas Dilger <[EMAIL PROTECTED]>
0x438   leshort         0xEF53          Linux
>0x44c  lelong          x               rev %d
>0x43e  leshort         x               \b.%d
>0x45c  lelong          ^0x0000004      ext2 filesystem data
>>0x43a leshort         ^0x0000001      (mounted or unclean)
>0x45c  lelong          &0x0000004      ext3 filesystem data
>>0x460 lelong          &0x0000004      (needs journal recovery)
>0x43a  leshort         &0x0000002      (errors)
>0x460  lelong          &0x0000001      (compressed)
#>0x460 lelong          &0x0000002      (filetype)
#>0x464 lelong          &0x0000001      (sparse_super)
>0x464  lelong          &0x0000002      (large files)

        Running file on a reiserfs file returns:

[wstearns@sparrow test-resize]$ file emptyfs.reiser.100  
emptyfs.reiser.100: ASCII text, with no line terminators

        Is there a similar signature that could identify a reiserfs file?
        The files I ran this on can be found at 
http://www.stearns.org/mkrootfs/
        Cheers,
        - Bill

---------------------------------------------------------------------------
        "A 'No' uttered from deepest conviction is better and greater
than a 'Yes' merely uttered to please, or what is worse, to avoid
trouble."
        -- Mahatma Ghandi
From: Adrian Bunk <[EMAIL PROTECTED]>
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED]).  Mason, Buildkernel, named2hosts, 
and ipfwadm2ipchains are at:                        http://www.stearns.org
--------------------------------------------------------------------------

Reply via email to