[Linux-aus] enum in /etc/magic

Russell Coker russell at coker.com.au
Fri Jun 20 12:30:20 EST 2014


On Thu, 19 Jun 2014 22:31:21 Stewart Smith wrote:
> Russell Coker <russell at coker.com.au> writes:
> >> On 15 June 2014 20:50, Russell Coker <russell at coker.com.au> wrote:
> >> > I've got an enum in a data structure that I'd like to display in the
> >> > output of
> >> > file(1).
> >> > 
> >> > 0       beshort                 0xfe01          MySQL table definition
> >> > file
> >> > 
> >> > >2      byte                    x               Version %d,
> >> > >3      byte                    9               Type MYISAM
> >> > >3      byte                    12              Type INNODB
> 
> Just FYI, there's a whole range of numbers that are for dynamic engines,
> the details of which I can't remember of the top of my head... but
> basically, since 5.0-ish (maybe before), there also should be a string
> of the engine in the FRM rather than just the magic number (but the
> magic number is used in places in the code... because the code is
> ancient and awful).

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751826

Please make an addition to the above bug report if you know of any good 
numbers that should be included.  The DD will send the patch upstream.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




More information about the linux-aus mailing list