aboutsummaryrefslogtreecommitdiff
path: root/shared/fs/afs/constants/flags.zig
blob: 3ac114373347ca4aa12cec7b949c5d4af0be3d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! AFS Flags

// Unit flags
pub const unit_locked: u16 = 0x0001;
pub const unit_has_thread: u16 = 0x0002;
pub const unit_has_alias: u16 = 0x0004;
pub const unit_has_security: u16 = 0x0008;
pub const unit_has_twins: u16 = 0x0010;
pub const unit_has_resource_channel: u16 = 0x0020;

// Channel types
pub const channel_data: u8 = 0x00;
pub const channel_resource: u8 = 0xFF;

// Compression types
pub const compression_none: u32 = 0;
pub const compression_zlib: u32 = 1;
pub const compression_lz4: u32 = 2;
pub const compression_zstd: u32 = 3;

// Encryption types
pub const encryption_none: u32 = 0;
pub const encryption_aes_128_xts: u32 = 1;
pub const encryption_aes_256_xts: u32 = 2;

// Journal flags
pub const journal_on_other_device: u32 = 0x00000001;
pub const journal_needs_init: u32 = 0x00000002;