lkml.org 
[lkml]   [1996]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Any "file" utility for partitions?
Date
Bjorn Ekwall Wrote ...
>
> The remaining "problem" is to identify the partitions in a way
> that is more bullet-proof than just relying on the partition ids.
> For now one can recognize a (Linux) swap-partition by looking for
> the swap signature as well as identify quite a few other types
> by looking for the (respective) s_magic fields in the super blocks.
>
> So, has anyone created such a tool (yet)? Any takers?

Although I don't have the time myself, I'll say to anyone who is thinking
of this that it would appear on the surface that an /etc/magic entry would
be enough to do this. magic handles all the kinds of lookups I can think
you would need.

All you then need is an override so that file will not tell you it's a
'block special' and actually go and look inside it.

--
[=======================================================================]
[ Kevin Lentin |finger kevinl@fangorn.cs.monash.edu.au| ]
[ K.Lentin@cs.monash.edu.au |for PGP public key block. Fingerprint | ]
[ Macintrash: 'Just say NO!' |6024308DE1F84314 811B511DBA6FD596 | ]
[=======================================================================]


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.140 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site