From: Christos Zoulas Date: Sun, 20 Oct 2013 17:41:05 +0000 (+0000) Subject: add bcache magic (Gabriel de Perthuis) X-Git-Tag: FILE5_16~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2ad69a9b63327bb234f4b37c183d7fa64acca63;p=file add bcache magic (Gabriel de Perthuis) --- diff --git a/magic/Magdir/linux b/magic/Magdir/linux index 634e9b59..707ef8bd 100644 --- a/magic/Magdir/linux +++ b/magic/Magdir/linux @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: linux,v 1.49 2013/06/26 14:46:46 christos Exp $ +# $File: linux,v 1.50 2013/06/26 14:48:31 christos Exp $ # linux: file(1) magic for Linux files # # Values for Linux/i386 binaries, from Daniel Quinlan @@ -368,3 +368,26 @@ >>>>>>>>16 ubyte 2 \b, archived >>>>>>>>8 ulelong&1 1 \b, sealed >>>>>>>>12 ulelong&1 1 \b, compressed + +# BCache backing and cache devices +# From: Gabriel de Perthuis +0x1008 lequad 8 +>0x1018 string \xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81 BCache +>>0x1010 ulequad 0 cache device +>>0x1010 ulequad 1 backing device +>>0x1010 ulequad 3 cache device +>>0x1010 ulequad 4 backing device +>>0x1048 string >0 \b, label "%.32s" +>>0x1028 ubelong x \b, uuid %08x +>>0x102c ubeshort x \b-%04x +>>0x102e ubeshort x \b-%04x +>>0x1030 ubeshort x \b-%04x +>>0x1032 ubelong x \b-%08x +>>0x1036 ubeshort x \b%04x +>>0x1038 ubelong x \b, set uuid %08x +>>0x103c ubeshort x \b-%04x +>>0x103e ubeshort x \b-%04x +>>0x1040 ubeshort x \b-%04x +>>0x1042 ubelong x \b-%08x +>>0x1046 ubeshort x \b%04x +