| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // -- Partition labels -- |
| pub const BLOBFS_PARTITION_LABEL: &str = "blobfs"; |
| pub const DATA_PARTITION_LABEL: &str = "data"; |
| pub const LEGACY_DATA_PARTITION_LABEL: &str = "minfs"; |
| pub const FVM_PARTITION_LABEL: &str = "fvm"; |
| pub const FUCHSIA_FVM_PARTITION_LABEL: &str = "fuchsia-fvm"; |
| pub const FTL_PARTITION_LABEL: &str = "ftl"; |
| pub const SUPER_PARTITION_LABEL: &str = "super"; |
| |
| // -- Partition type GUIDs -- |
| pub const BLOBFS_TYPE_GUID: [u8; 16] = [ |
| 0x0e, 0x38, 0x67, 0x29, 0x4c, 0x13, 0xbb, 0x4c, 0xb6, 0xda, 0x17, 0xe7, 0xce, 0x1c, 0xa4, 0x5d, |
| ]; |
| pub const DATA_TYPE_GUID: [u8; 16] = [ |
| 0x0c, 0x5f, 0x18, 0x08, 0x2d, 0x89, 0x8a, 0x42, 0xa7, 0x89, 0xdb, 0xee, 0xc8, 0xf5, 0x5e, 0x6a, |
| ]; |
| pub const FVM_TYPE_GUID: [u8; 16] = [ |
| 0xb8, 0x7c, 0xfd, 0x49, 0x15, 0xdf, 0x73, 0x4e, 0xb9, 0xd9, 0x99, 0x20, 0x70, 0x12, 0x7f, 0x0f, |
| ]; |
| pub const FVM_LEGACY_TYPE_GUID: [u8; 16] = [ |
| 0x40, 0xe3, 0xd0, 0x41, 0xe3, 0x57, 0x4e, 0x95, 0x8c, 0x1e, 0x17, 0xec, 0xac, 0x44, 0xcf, 0xf5, |
| ]; |
| |
| // -- Driver paths (to be used to attach devices) |
| pub const FVM_DRIVER_PATH: &str = "fvm.cm"; |
| pub const GPT_DRIVER_PATH: &str = "gpt.cm"; |
| pub const MBR_DRIVER_PATH: &str = "mbr.cm"; |
| pub const BOOTPART_DRIVER_PATH: &str = "bootpart.cm"; |
| // pub const BLOCK_VERITY_DRIVER_PATH: &str = "block-verity.cm"; |
| pub const NAND_BROKER_DRIVER_PATH: &str = "nand-broker.cm"; |
| pub const ZXCRYPT_DRIVER_PATH: &str = "zxcrypt.cm"; |
| |
| pub const DEFAULT_F2FS_MIN_BYTES: u64 = 100 * 1024 * 1024; |