Go to the documentation of this file.
29 #include <linux/types.h>
30 #include <linux/list.h>
33 #include <asm/unaligned.h>
34 #include <asm/byteorder.h>
39 #define MAGIC_VMDB 0x564D4442
40 #define MAGIC_VBLK 0x56424C4B
41 #define MAGIC_PRIVHEAD 0x5052495648454144ULL
42 #define MAGIC_TOCBLOCK 0x544F43424C4F434BULL
45 #define VBLK_VOL5 0x51
46 #define VBLK_CMP3 0x32
47 #define VBLK_PRT3 0x33
48 #define VBLK_DSK3 0x34
49 #define VBLK_DSK4 0x44
50 #define VBLK_DGR3 0x35
51 #define VBLK_DGR4 0x45
54 #define VBLK_FLAG_COMP_STRIPE 0x10
55 #define VBLK_FLAG_PART_INDEX 0x08
56 #define VBLK_FLAG_DGR3_IDS 0x08
57 #define VBLK_FLAG_DGR4_IDS 0x08
58 #define VBLK_FLAG_VOLU_ID1 0x08
59 #define VBLK_FLAG_VOLU_ID2 0x20
60 #define VBLK_FLAG_VOLU_SIZE 0x80
61 #define VBLK_FLAG_VOLU_DRIVE 0x02
64 #define VBLK_SIZE_HEAD 16
65 #define VBLK_SIZE_CMP3 22
66 #define VBLK_SIZE_DGR3 12
67 #define VBLK_SIZE_DGR4 44
68 #define VBLK_SIZE_DSK3 12
69 #define VBLK_SIZE_DSK4 45
70 #define VBLK_SIZE_PRT3 28
71 #define VBLK_SIZE_VOL5 58
74 #define COMP_STRIPE 0x01
75 #define COMP_BASIC 0x02
76 #define COMP_RAID 0x03
79 #define LDM_DB_SIZE 2048
86 #define OFF_PRIV2 1856
87 #define OFF_PRIV3 2047
91 #define OFF_TOCB3 2045
92 #define OFF_TOCB4 2046
96 #define LDM_PARTITION 0x42
98 #define TOC_BITMAP1 "config"
99 #define TOC_BITMAP2 "log"
102 #define SYS_IND(p) (get_unaligned(&(p)->sys_ind))