Hi Russell,

after a weekend away from computers:

From: "Russell Coker" <[email protected]>
> I'm working on writing /etc/magic entries for ZFS.
>
> Also running "file -s -k /dev/sd?" doesn't work, is the -k option expected
> to work on a device node?

It works for me:

On a Ubuntu system
$ file -v
file-5.09
magic file from /etc/magic:/usr/share/misc/magic
$ file -s -k /dev/sda
/dev/sda: no read permission
$ sudo file -s -k /dev/sda
[sudo] password:
/dev/sda: x86 boot sector; partition 1: ID=0x7, active, starthead 32,
startsector 2048, 204800 sectors; partition 2: ID=0x82, starthead 254,
startsector 1192505344, 7997440 sectors; partition 3: ID=0x83, starthead
223, startsector 206848, 1192296448 sectors; partition 4: ID=0x5,
starthead 254, startsector 1200504830, 753018882 sectors, code offset
0x63, OEM-ID "      ΠΌ", Bytes/sector 190, sectors/cluster 124, reserved
sectors 191, FATs 6, root entries 185, sectors 64514 (volumes <=32 MB) ,
Media descriptor 0xf3, sectors/FAT 20644, heads 6, hidden sectors 309755,
sectors 2147991229 (volumes > 32 MB) , physical drive 0x7e, dos < 4.0
BootSector (0x0) DOS executable (COM), boot code

I do not have a ZFS under Linux.

Under FreeBSD:
# file -v
file-5.11
magic file from /usr/share/misc/magic
# file -s -k /dev/gpt/zpoolada1
/dev/gpt/zpoolada1: VISX image file

Time for your magic:-) I have never looked at the file format so you are
miles ahead of me:-)

Regards
Peter

_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main
  • zfs magic Russell Coker
    • Re: zfs magic Peter Ross

Reply via email to