1pub const HEADER_SIZE: u32 = 4096;
6
7pub const MINFS_MAGIC: [u8; 16] = [
9 0x21, 0x4d, 0x69, 0x6e, 0x46, 0x53, 0x21, 0x00, 0x04, 0xd3, 0xd3, 0xd3, 0xd3, 0x00, 0x50, 0x38,
10];
11
12pub const BLOBFS_MAGIC: [u8; 16] = [
13 0x21, 0x4d, 0x69, 0x9e, 0x47, 0x53, 0x21, 0xac, 0x14, 0xd3, 0xd3, 0xd4, 0xd4, 0x00, 0x50, 0x98,
14];
15
16pub const GPT_MAGIC: [u8; 16] = [
17 0x45, 0x46, 0x49, 0x20, 0x50, 0x41, 0x52, 0x54, 0x00, 0x00, 0x01, 0x00, 0x5c, 0x00, 0x00, 0x00,
18];
19
20pub const FVM_MAGIC: [u8; 8] = [0x46, 0x56, 0x4d, 0x20, 0x50, 0x41, 0x52, 0x54];
21
22pub const ZXCRYPT_MAGIC: [u8; 16] = [
23 0x5f, 0xe8, 0xf8, 0x00, 0xb3, 0x6d, 0x11, 0xe7, 0x80, 0x7a, 0x78, 0x63, 0x72, 0x79, 0x70, 0x74,
24];
25
26pub const BLOCK_VERITY_MAGIC: [u8; 16] = [
27 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2d, 0x76, 0x31, 0x00,
28];
29
30pub const VB_META_MAGIC: [u8; 4] = [b'A', b'V', b'B', b'0'];
31
32pub const F2FS_MAGIC: [u8; 4] = [0x10, 0x20, 0xf5, 0xf2];
33
34pub const FXFS_MAGIC: [u8; 8] = [b'F', b'x', b'f', b's', b'S', b'u', b'p', b'r'];
35
36pub const BLOBFS_PARTITION_LABEL: &str = "blobfs";
38
39pub const DATA_PARTITION_LABEL: &str = "data";
40
41pub const LEGACY_DATA_PARTITION_LABEL: &str = "minfs";
42
43pub const FVM_PARTITION_LABEL: &str = "fvm";
44
45pub const FUCHSIA_FVM_PARTITION_LABEL: &str = "fuchsia-fvm";
46
47pub const FTL_PARTITION_LABEL: &str = "ftl";
48
49pub const SUPER_PARTITION_LABEL: &str = "super";
50
51pub const ALL_FVM_LABELS: [&str; 4] =
52 [FVM_PARTITION_LABEL, FUCHSIA_FVM_PARTITION_LABEL, FTL_PARTITION_LABEL, SUPER_PARTITION_LABEL];