linux revision 302408
146283Sdfr
246283Sdfr#------------------------------------------------------------------------------
346283Sdfr# $File: linux,v 1.63 2015/08/24 05:16:11 christos Exp $
446283Sdfr# linux:  file(1) magic for Linux files
546283Sdfr#
646283Sdfr# Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
746283Sdfr# The following basic Linux magic is useful for reference, but using
846283Sdfr# "long" magic is a better practice in order to avoid collisions.
946283Sdfr#
1046283Sdfr# 2	leshort		100		Linux/i386
1146283Sdfr# >0	leshort		0407		impure executable (OMAGIC)
1246283Sdfr# >0	leshort		0410		pure executable (NMAGIC)
1346283Sdfr# >0	leshort		0413		demand-paged executable (ZMAGIC)
1446283Sdfr# >0	leshort		0314		demand-paged executable (QMAGIC)
1546283Sdfr#
1646283Sdfr0	lelong		0x00640107	Linux/i386 impure executable (OMAGIC)
1746283Sdfr>16	lelong		0		\b, stripped
1846283Sdfr0	lelong		0x00640108	Linux/i386 pure executable (NMAGIC)
1946283Sdfr>16	lelong		0		\b, stripped
2046283Sdfr0	lelong		0x0064010b	Linux/i386 demand-paged executable (ZMAGIC)
2146283Sdfr>16	lelong		0		\b, stripped
2246283Sdfr0	lelong		0x006400cc	Linux/i386 demand-paged executable (QMAGIC)
2346283Sdfr>16	lelong		0		\b, stripped
2446283Sdfr#
2546283Sdfr0	string		\007\001\000	Linux/i386 object file
2646283Sdfr>20	lelong		>0x1020		\b, DLL library
2746283Sdfr# Linux-8086 stuff:
2846283Sdfr0	string		\01\03\020\04	Linux-8086 impure executable
2946283Sdfr>28	long		!0		not stripped
3046283Sdfr0	string		\01\03\040\04	Linux-8086 executable
3146283Sdfr>28	long		!0		not stripped
3246283Sdfr#
3346283Sdfr0	string		\243\206\001\0	Linux-8086 object file
3446283Sdfr#
3546283Sdfr0	string		\01\03\020\20	Minix-386 impure executable
3646283Sdfr>28	long		!0		not stripped
3746283Sdfr0	string		\01\03\040\20	Minix-386 executable
3846283Sdfr>28	long		!0		not stripped
3946283Sdfr0	string		\01\03\04\20	Minix-386 NSYM/GNU executable
4046283Sdfr>28	long		!0		not stripped
4146283Sdfr# core dump file, from Bill Reynolds <bill@goshawk.lanl.gov>
4246283Sdfr216	lelong		0421		Linux/i386 core file
4346283Sdfr!:strength / 2
4446283Sdfr>220	string		>\0		of '%s'
4546283Sdfr>200	lelong		>0		(signal %d)
4646283Sdfr#
4746283Sdfr# LILO boot/chain loaders, from Daniel Quinlan <quinlan@yggdrasil.com>
4846283Sdfr# this can be overridden by the DOS executable (COM) entry
4946283Sdfr2	string		LILO		Linux/i386 LILO boot/chain loader
5046283Sdfr#
5146283Sdfr# Linux make config build file, from Ole Aamot <oka@oka.no>
5246283Sdfr# Updated by Ken Sharp
5346283Sdfr28	string		make\ config		Linux make config build file (old)
5446283Sdfr49	search/70	Kernel\ Configuration	Linux make config build file
5546283Sdfr
5646283Sdfr#
5746283Sdfr# PSF fonts, from H. Peter Anvin <hpa@yggdrasil.com>
5846283Sdfr# Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
5946283Sdfr# See: http://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
6046283Sdfr0	leshort		0x0436		Linux/i386 PC Screen Font v1 data,
6146283Sdfr>2	byte&0x01	0		256 characters,
6246283Sdfr>2	byte&0x01	!0		512 characters,
6346283Sdfr>2	byte&0x02	0		no directory,
6446283Sdfr>2	byte&0x02	!0		Unicode directory,
6546283Sdfr>3	byte		>0		8x%d
6646283Sdfr0	string		\x72\xb5\x4a\x86\x00\x00 Linux/i386 PC Screen Font v2 data,
6746283Sdfr>16	lelong		x		%d characters,
6846283Sdfr>12	lelong&0x01	0		no directory,
6946283Sdfr>12	lelong&0x01	!0		Unicode directory,
7046283Sdfr>24	lelong		x		%d
7146283Sdfr>28	lelong		x		\bx%d
7246283Sdfr
7346283Sdfr# Linux swap file, from Daniel Quinlan <quinlan@yggdrasil.com>
7446283Sdfr4086	string		SWAP-SPACE	Linux/i386 swap file
7546283Sdfr# From: Jeff Bailey <jbailey@ubuntu.com>
7646283Sdfr# Linux swap file with swsusp1 image, from Jeff Bailey <jbailey@ubuntu.com>
7746283Sdfr4076	string		SWAPSPACE2S1SUSPEND	Linux/i386 swap file (new style) with SWSUSP1 image
7846283Sdfr# From: James Hunt <james.hunt@ubuntu.com>
7946283Sdfr4076    string          SWAPSPACE2LINHIB0001    Linux/i386 swap file (new style) (compressed hibernate)
8046283Sdfr# according to man page of mkswap (8) March 1999
8146283Sdfr# volume label and UUID Russell Coker
8246283Sdfr# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
8346283Sdfr4086	string		SWAPSPACE2	Linux/i386 swap file (new style),
8446283Sdfr>0x400	long		x		version %d (4K pages),
8546283Sdfr>0x404	long		x		size %d pages,
8646283Sdfr>1052	string		\0		no label,
8746283Sdfr>1052	string		>\0		LABEL=%s,
8846283Sdfr>0x40c	belong		x		UUID=%08x
8946283Sdfr>0x410	beshort		x		\b-%04x
9046283Sdfr>0x412	beshort		x		\b-%04x
9146283Sdfr>0x414	beshort		x		\b-%04x
9246283Sdfr>0x416	belong		x		\b-%08x
9346283Sdfr>0x41a	beshort		x		\b%04x
9446283Sdfr# From Daniel Novotny <dnovotny@redhat.com>
9546283Sdfr# swap file for PowerPC
9646283Sdfr65526	string		SWAPSPACE2	Linux/ppc swap file
9746283Sdfr16374	string		SWAPSPACE2	Linux/ia64 swap file
9846283Sdfr#
9946283Sdfr# Linux kernel boot images, from Albert Cahalan <acahalan@cs.uml.edu>
10046283Sdfr# and others such as Axel Kohlmeyer <akohlmey@rincewind.chemie.uni-ulm.de>
10146283Sdfr# and Nicolas Lichtmaier <nick@debian.org>
10246283Sdfr# All known start with: b8 c0 07 8e d8 b8 00 90 8e c0 b9 00 01 29 f6 29
10346283Sdfr# Linux kernel boot images (i386 arch) (Wolfram Kleff)
10446283Sdfr514	string		HdrS		Linux kernel
10546283Sdfr!:strength + 55
10646283Sdfr>510	leshort		0xAA55		x86 boot executable
10746283Sdfr>>518	leshort		>0x1ff
10846283Sdfr>>>529	byte		0		zImage,
10946283Sdfr>>>529	byte		1		bzImage,
11046283Sdfr>>>526	lelong		>0
11146283Sdfr>>>>(526.s+0x200) string	>\0	version %s,
11246283Sdfr>>498	leshort		1		RO-rootFS,
11346283Sdfr>>498	leshort		0		RW-rootFS,
11446283Sdfr>>508	leshort		>0		root_dev 0x%X,
11546283Sdfr>>502	leshort		>0		swap_dev 0x%X,
11646283Sdfr>>504	leshort		>0		RAMdisksize %u KB,
11746283Sdfr>>506	leshort		0xFFFF		Normal VGA
11846283Sdfr>>506	leshort		0xFFFE		Extended VGA
11946283Sdfr>>506	leshort		0xFFFD		Prompt for Videomode
12046283Sdfr>>506	leshort		>0		Video mode %d
12146283Sdfr# This also matches new kernels, which were caught above by "HdrS".
12246283Sdfr0		belong	0xb8c0078e	Linux kernel
12346283Sdfr>0x1e3		string	Loading		version 1.3.79 or older
12446283Sdfr>0x1e9		string	Loading		from prehistoric times
12546283Sdfr
12646283Sdfr# System.map files - Nicolas Lichtmaier <nick@debian.org>
12746283Sdfr8	search/1	\ A\ _text	Linux kernel symbol map text
12846283Sdfr
12946283Sdfr# LSM entries - Nicolas Lichtmaier <nick@debian.org>
13046283Sdfr0	search/1	Begin3	Linux Software Map entry text
13146283Sdfr0	search/1	Begin4	Linux Software Map entry text (new format)
13246283Sdfr
13346283Sdfr# From Matt Zimmerman, enhanced for v3 by Matthew Palmer
13446283Sdfr0	belong	0x4f4f4f4d	User-mode Linux COW file
13546283Sdfr>4	belong	<3		\b, version %d
13646283Sdfr>>8	string	>\0		\b, backing file %s
13746283Sdfr>4	belong	>2		\b, version %d
13846283Sdfr>>32	string	>\0		\b, backing file %s
13946283Sdfr
14046283Sdfr############################################################################
14146283Sdfr# Linux kernel versions
14246283Sdfr
14346283Sdfr0		string		\xb8\xc0\x07\x8e\xd8\xb8\x00\x90	Linux
14446283Sdfr>497		leshort		0		x86 boot sector
14546283Sdfr>>514		belong		0x8e	of a kernel from the dawn of time!
14646283Sdfr>>514		belong		0x908ed8b4	version 0.99-1.1.42
14746283Sdfr>>514		belong		0x908ed8b8	for memtest86
14846283Sdfr
14946283Sdfr>497		leshort		!0		x86 kernel
15046283Sdfr>>504		leshort		>0		RAMdisksize=%u KB
15146283Sdfr>>502		leshort		>0		swap=0x%X
15246283Sdfr>>508		leshort		>0		root=0x%X
15346283Sdfr>>>498		leshort		1		\b-ro
15446283Sdfr>>>498		leshort		0		\b-rw
15546283Sdfr>>506		leshort		0xFFFF		vga=normal
15646283Sdfr>>506		leshort		0xFFFE		vga=extended
15746283Sdfr>>506		leshort		0xFFFD		vga=ask
15846283Sdfr>>506		leshort		>0		vga=%d
15946283Sdfr>>514		belong		0x908ed881	version 1.1.43-1.1.45
16046283Sdfr>>514		belong		0x15b281cd
16146283Sdfr>>>0xa8e	belong		0x55AA5a5a	version 1.1.46-1.2.13,1.3.0
16246283Sdfr>>>0xa99	belong		0x55AA5a5a	version 1.3.1,2
16346283Sdfr>>>0xaa3	belong		0x55AA5a5a	version 1.3.3-1.3.30
16446283Sdfr>>>0xaa6	belong		0x55AA5a5a	version 1.3.31-1.3.41
16546283Sdfr>>>0xb2b	belong		0x55AA5a5a	version 1.3.42-1.3.45
16646283Sdfr>>>0xaf7	belong		0x55AA5a5a	version 1.3.46-1.3.72
16746283Sdfr>>514		string		HdrS
16846283Sdfr>>>518		leshort		>0x1FF
16946283Sdfr>>>>529		byte		0		\b, zImage
17046283Sdfr>>>>529		byte		1		\b, bzImage
17146283Sdfr>>>>(526.s+0x200) string 	>\0		\b, version %s
17246283Sdfr
17346283Sdfr# Linux boot sector thefts.
17446283Sdfr0		belong		0xb8c0078e	Linux
17546283Sdfr>0x1e6		belong		0x454c4b53	ELKS Kernel
17646283Sdfr>0x1e6		belong		!0x454c4b53	style boot sector
17746283Sdfr
17846283Sdfr############################################################################
17946283Sdfr# Linux S390 kernel image
18046283Sdfr# Created by: Jan Kaluza <jkaluza@redhat.com>
18146283Sdfr8 string \x02\x00\x00\x18\x60\x00\x00\x50\x02\x00\x00\x68\x60\x00\x00\x50\x40\x40\x40\x40\x40\x40\x40\x40 Linux S390
18246283Sdfr>0x00010000 search/b/4096 \x00\x0a\x00\x00\x8b\xad\xcc\xcc
18346283Sdfr# 64bit
18446283Sdfr>>&0 string \xc1\x00\xef\xe3\xf0\x68\x00\x00 Z10 64bit kernel
18546283Sdfr>>&0 string \xc1\x00\xef\xc3\x00\x00\x00\x00 Z9-109 64bit kernel
18646283Sdfr>>&0 string \xc0\x00\x20\x00\x00\x00\x00\x00 Z990 64bit kernel
18746283Sdfr>>&0 string \x00\x00\x00\x00\x00\x00\x00\x00 Z900 64bit kernel
18846283Sdfr# 32bit
18946283Sdfr>>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z10 32bit kernel
19046283Sdfr>>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z9-109 32bit kernel
19146283Sdfr>>&0 string \x80\x00\x20\x00\x00\x00\x00\x00 Z990 32bit kernel
19246283Sdfr>>&0 string \x80\x00\x00\x00\x00\x00\x00\x00 Z900 32bit kernel
19346283Sdfr
19446283Sdfr# Linux ARM compressed kernel image
19546283Sdfr# From: Kevin Cernekee <cernekee@gmail.com>
19646283Sdfr36	lelong	0x016f2818	Linux kernel ARM boot executable zImage (little-endian)
19746283Sdfr36	belong	0x016f2818	Linux kernel ARM boot executable zImage (big-endian)
19846283Sdfr
19946283Sdfr############################################################################
20046283Sdfr# Linux 8086 executable
20146283Sdfr0	lelong&0xFF0000FF 0xC30000E9	Linux-Dev86 executable, headerless
20246283Sdfr>5	string		.		
20346283Sdfr>>4	string		>\0		\b, libc version %s
20446283Sdfr
20546283Sdfr0	lelong&0xFF00FFFF 0x4000301	Linux-8086 executable
20646283Sdfr>2	byte&0x01	!0		\b, unmapped zero page
20746283Sdfr>2	byte&0x20	0		\b, impure
20846283Sdfr>2	byte&0x20	!0
20946283Sdfr>>2	byte&0x10	!0		\b, A_EXEC
21046283Sdfr>2	byte&0x02	!0		\b, A_PAL
21146283Sdfr>2	byte&0x04	!0		\b, A_NSYM
21246283Sdfr>2	byte&0x08	!0		\b, A_STAND
21346283Sdfr>2	byte&0x40	!0		\b, A_PURE
21446283Sdfr>2	byte&0x80	!0		\b, A_TOVLY
21546283Sdfr>28     long            !0              \b, not stripped
21646283Sdfr>37	string		.		
21746283Sdfr>>36	string		>\0		\b, libc version %s
21846283Sdfr
21946283Sdfr# 0	lelong&0xFF00FFFF 0x10000301	ld86 I80386 executable
22046283Sdfr# 0	lelong&0xFF00FFFF 0xB000301	ld86 M68K executable
22146283Sdfr# 0	lelong&0xFF00FFFF 0xC000301	ld86 NS16K executable
22246283Sdfr# 0	lelong&0xFF00FFFF 0x17000301	ld86 SPARC executable
22346283Sdfr
22446283Sdfr# SYSLINUX boot logo files (from 'ppmtolss16' sources)
22546283Sdfr# http://www.syslinux.org/wiki/index.php/SYSLINUX#Display_graphic_from_filename:
22646283Sdfr# file extension .lss .16
22746283Sdfr0	lelong	=0x1413f33d		SYSLINUX' LSS16 image data
22846283Sdfr# syslinux-4.05/mime/image/x-lss16.xml
22946283Sdfr!:mime image/x-lss16
23046283Sdfr>4	leshort	x			\b, width %d
23146283Sdfr>6	leshort	x			\b, height %d
23246283Sdfr
23346283Sdfr0	string	OOOM			User-Mode-Linux's Copy-On-Write disk image
23446283Sdfr>4	belong	x			version %d
23546283Sdfr
23646283Sdfr# SE Linux policy database
23746283Sdfr# From: Mike Frysinger <vapier@gentoo.org>
23846283Sdfr0	lelong	0xf97cff8c		SE Linux policy
23946283Sdfr>16	lelong	x			v%d
24046283Sdfr>20	lelong	1			MLS
24146283Sdfr>24	lelong	x			%d symbols
24246283Sdfr>28	lelong	x			%d ocons
24346283Sdfr
24446283Sdfr# Linux Logical Volume Manager (LVM) 
24546283Sdfr# Emmanuel VARAGNAT <emmanuel.varagnat@guzu.net>
24646283Sdfr#
24746283Sdfr# System ID, UUID and volume group name are 128 bytes long
24846283Sdfr# but they should never be full and initialized with zeros...
24946283Sdfr#
25046283Sdfr# LVM1
25146283Sdfr#
25246283Sdfr0x0	string	HM\001		LVM1 (Linux Logical Volume Manager), version 1
25346283Sdfr>0x12c	string	>\0		, System ID: %s
25446283Sdfr
25546283Sdfr0x0	string	HM\002		LVM1 (Linux Logical Volume Manager), version 2
25646283Sdfr>0x12c	string	>\0		, System ID: %s
25746283Sdfr
25846283Sdfr#  LVM2
25946283Sdfr#
26046283Sdfr# It seems that the label header can be in one the four first sector
26146283Sdfr# of the disk... (from _find_labeller in lib/label/label.c of LVM2)
26246283Sdfr#
26346283Sdfr# 0x200 seems to be the common case
26446283Sdfr
26546283Sdfr0x218           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
26646283Sdfr# read the offset to add to the start of the header, and the header
26746283Sdfr# start in 0x200
26846283Sdfr>&(&-12.l-0x21) byte    x
26946283Sdfr# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
27046283Sdfr>>&0x0          string  >\x2f          \b, UUID: %.6s
27146283Sdfr>>&0x6          string  >\x2f          \b-%.4s
27246283Sdfr>>&0xa          string  >\x2f          \b-%.4s
27346283Sdfr>>&0xe          string  >\x2f          \b-%.4s
27446283Sdfr>>&0x12         string  >\x2f          \b-%.4s
27546283Sdfr>>&0x16         string  >\x2f          \b-%.4s
27646283Sdfr>>&0x1a         string  >\x2f          \b-%.6s
27746283Sdfr>>&0x20         lequad  x              \b, size: %lld
27846283Sdfr
27946283Sdfr0x018           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
28046283Sdfr>&(&-12.l-0x21) byte    x
28146283Sdfr# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
28246283Sdfr>>&0x0          string  >\x2f          \b, UUID: %.6s
28346283Sdfr>>&0x6          string  >\x2f          \b-%.4s
28446283Sdfr>>&0xa          string  >\x2f          \b-%.4s
28546283Sdfr>>&0xe          string  >\x2f          \b-%.4s
28646283Sdfr>>&0x12         string  >\x2f          \b-%.4s
28746283Sdfr>>&0x16         string  >\x2f          \b-%.4s
28846283Sdfr>>&0x1a         string  >\x2f          \b-%.6s
28946283Sdfr>>&0x20         lequad  x              \b, size: %lld
29046283Sdfr
29146283Sdfr0x418           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
29246283Sdfr>&(&-12.l-0x21) byte    x
29346283Sdfr# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
29446283Sdfr>>&0x0          string  >\x2f          \b, UUID: %.6s
29546283Sdfr>>&0x6          string  >\x2f          \b-%.4s
29646283Sdfr>>&0xa          string  >\x2f          \b-%.4s
29746283Sdfr>>&0xe          string  >\x2f          \b-%.4s
29846283Sdfr>>&0x12         string  >\x2f          \b-%.4s
29946283Sdfr>>&0x16         string  >\x2f          \b-%.4s
30046283Sdfr>>&0x1a         string  >\x2f          \b-%.6s
30146283Sdfr>>&0x20         lequad  x              \b, size: %lld
30246283Sdfr
30346283Sdfr0x618           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
30446283Sdfr>&(&-12.l-0x21) byte    x              
30546283Sdfr# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
30646283Sdfr>>&0x0          string  >\x2f          \b, UUID: %.6s
30746283Sdfr>>&0x6          string  >\x2f          \b-%.4s
30846283Sdfr>>&0xa          string  >\x2f          \b-%.4s
30946283Sdfr>>&0xe          string  >\x2f          \b-%.4s
31046283Sdfr>>&0x12         string  >\x2f          \b-%.4s
31146283Sdfr>>&0x16         string  >\x2f          \b-%.4s
31246283Sdfr>>&0x1a         string  >\x2f          \b-%.6s
31346283Sdfr>>&0x20         lequad  x              \b, size: %lld
31446283Sdfr
31546283Sdfr# LVM snapshot
31646283Sdfr# from Jason Farrel
31746283Sdfr0	string	SnAp	LVM Snapshot (CopyOnWrite store)
31846283Sdfr>4	lelong	!0	- valid,
31946283Sdfr>4	lelong	0	- invalid,
32046283Sdfr>8	lelong	x	version %d,
32146283Sdfr>12	lelong	x	chunk_size %d
32246283Sdfr
32346283Sdfr# SE Linux policy database
32446283Sdfr0	lelong	0xf97cff8c		SE Linux policy
32546283Sdfr>16	lelong	x			v%d
32646283Sdfr>20	lelong	1			MLS
32746283Sdfr>24	lelong	x			%d symbols
32846283Sdfr>28	lelong	x			%d ocons
32946283Sdfr
33046283Sdfr# LUKS: Linux Unified Key Setup, On-Disk Format, http://luks.endorphin.org/spec
33146283Sdfr# Anthon van der Neut (anthon@mnt.org)
33246283Sdfr0	string	LUKS\xba\xbe	LUKS encrypted file,
33346283Sdfr>6	beshort x		ver %d
33446283Sdfr>8	string	x		[%s,
33546283Sdfr>40	string	x		%s,
33646283Sdfr>72	string	x		%s]
33746283Sdfr>168	string	x		UUID: %s
33846283Sdfr
33946283Sdfr
34046283Sdfr# Summary: Xen saved domain file
34146283Sdfr# Created by: Radek Vokal <rvokal@redhat.com>
34246283Sdfr0	string		LinuxGuestRecord	Xen saved domain
34346283Sdfr>20	search/256	(name			
34446283Sdfr>>&1	string		x			(name %s)
34546283Sdfr
34646283Sdfr# Type: Xen, the virtual machine monitor
34746283Sdfr# From: Radek Vokal <rvokal@redhat.com>
34846283Sdfr0	string		LinuxGuestRecord	Xen saved domain
34946283Sdfr#>2	regex		\(name\ [^)]*\)		%s
35046283Sdfr>20	search/256	(name			(name
35146283Sdfr>>&1	string		x			%s...)
35246283Sdfr
35346283Sdfr# Systemd journald files
35446283Sdfr# See http://www.freedesktop.org/wiki/Software/systemd/journal-files/.
35546283Sdfr# From: Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>
35646283Sdfr
35746283Sdfr# check magic
35846283Sdfr0	string	LPKSHHRH
35946283Sdfr# check that state is one of known values
36046283Sdfr>16		ubyte&252	0
361# check that each half of three unique id128s is non-zero
362>>24		ubequad		>0
363>>>32		ubequad		>0
364>>>>40		ubequad		>0
365>>>>>48		ubequad		>0
366>>>>>>56	ubequad		>0
367>>>>>>>64	ubequad		>0	Journal file
368!:mime application/octet-stream
369# provide more info
370>>>>>>>>184	leqdate		0	empty
371>>>>>>>>16	ubyte		0	\b, offline
372>>>>>>>>16	ubyte		1	\b, online
373>>>>>>>>16	ubyte		2	\b, archived
374>>>>>>>>8	ulelong&1	1	\b, sealed
375>>>>>>>>12	ulelong&1	1	\b, compressed
376
377# BCache backing and cache devices
378# From: Gabriel de Perthuis <g2p.code@gmail.com>
3790x1008		lequad		8
380>0x1018		string		\xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81	BCache
381>>0x1010	ulequad		0	cache device
382>>0x1010	ulequad		1	backing device
383>>0x1010	ulequad		3	cache device
384>>0x1010	ulequad		4	backing device
385>>0x1048	string		>0	\b, label "%.32s"
386>>0x1028	ubelong		x	\b, uuid %08x
387>>0x102c	ubeshort	x	\b-%04x
388>>0x102e	ubeshort	x	\b-%04x
389>>0x1030	ubeshort	x	\b-%04x
390>>0x1032	ubelong		x	\b-%08x
391>>0x1036	ubeshort	x	\b%04x
392>>0x1038	ubelong		x	\b, set uuid %08x
393>>0x103c	ubeshort	x	\b-%04x
394>>0x103e	ubeshort	x	\b-%04x
395>>0x1040	ubeshort	x	\b-%04x
396>>0x1042	ubelong		x	\b-%08x
397>>0x1046	ubeshort	x	\b%04x
398
399# Linux device tree:
400# File format description can be found in the Linux kernel sources at 
401# Documentation/devicetree/booting-without-of.txt
402# From Christoph Biedl
4030		belong		0xd00dfeed
404# structure and strings must be within blob
405>&(8.L)		byte		x
406>>&(12.L)	byte		x
407>>>20		belong		>1	Device Tree Blob version %d
408>>>>4		belong		x	\b, size=%d
409>>>>20		belong		>1
410>>>>>28		belong		x	\b, boot CPU=%d
411>>>>20		belong		>2
412>>>>>32		belong		x	\b, string block size=%d
413>>>>20		belong		>16
414>>>>>36		belong		x	\b, DT structure block size=%d
415
416# glibc locale archive as defined in glibc locale/locarchive.h
4170		lelong		0xde020109	locale archive
418>24		lelong		x		%d strings
419
420# Linux Software RAID (mdadm)
421# Russell Coker <russell@coker.com.au>
4220	name	linuxraid
423>16	belong	x		UUID=%8x:
424>20	belong	x		\b%8x:
425>24	belong	x		\b%8x:
426>28	belong	x		\b%8x
427>32	string	x		name=%s
428>72	lelong	x		level=%d
429>92	lelong	x		disks=%d
430
4314096	lelong	0xa92b4efc	Linux Software RAID
432>4100	lelong	x		version 1.2 (%d)
433>4096	use	linuxraid
434
4350	lelong	0xa92b4efc	Linux Software RAID
436>4	lelong	x		version 1.1 (%d)
437>0	use	linuxraid
438
439# Summary:     Database file for mlocate
440# Description: A database file as used by mlocate, a fast implementation
441#              of locate/updatedb. It uses merging to reuse the existing
442#              database and avoid rereading most of the filesystem. It's
443#              the default version of locate on Arch Linux (and others).
444# File path:   /var/lib/mlocate/mlocate.db by default (but configurable)
445# Site:        https://fedorahosted.org/mlocate/
446# Format docs: http://linux.die.net/man/5/mlocate.db
447# Type: mlocate database file
448# URL:  https://fedorahosted.org/mlocate/
449# From: Wander Nauta <info@wandernauta.nl>
4500		string		\0mlocate	mlocate database
451>12		byte		x		\b, version %d
452>13		byte		1		\b, require visibility
453>16		string		x		\b, root %s
454
455# Dump files for iproute2 tool. Generated by the "ip r|a save" command. URL:
456# https://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
457# From: Pavel Emelyanov <xemul@parallels.com>
4580		lelong		0x45311224	iproute2 routes dump
4590		lelong		0x47361222	iproute2 addresses dump
460
461# Image and service files for CRIU tool.
462# URL: http://criu.org
463# From: Pavel Emelyanov <xemul@parallels.com>
4640		lelong		0x54564319	CRIU image file v1.1
4650		lelong		0x55105940	CRIU service file
4660		lelong		0x58313116	CRIU inventory
467
468# Kdump compressed dump files
469# http://sourceforge.net/p/makedumpfile/code/ci/master/tree/IMPLEMENTATION
470
4710		string		KDUMP          	Kdump compressed dump
472>8		long		x		v%d
473>12		string		>\0		\b, system %s
474>77		string		>\0		\b, node %s
475>142		string		>\0		\b, release %s
476>207		string		>\0		\b, version %s
477>272		string		>\0		\b, machine %s
478>337		string		>\0		\b, domain %s
479