diff --git a/src/pxar/format_definition.rs b/src/pxar/format_definition.rs index a203e91a..9896244d 100644 --- a/src/pxar/format_definition.rs +++ b/src/pxar/format_definition.rs @@ -23,6 +23,7 @@ pub const CA_FORMAT_ACL_DEFAULT: u64 = 0xfe3eeda6823c8cd0; pub const CA_FORMAT_ACL_DEFAULT_USER: u64 = 0xbdf03df9bd010a91; pub const CA_FORMAT_ACL_DEFAULT_GROUP: u64 = 0xa0cb1168782d1f51; pub const CA_FORMAT_FCAPS: u64 = 0xf7267db0afed0629; +pub const CA_FORMAT_QUOTA_PROJID:u64 = 0x161baf2d8772a72b; // compute_goodbye_hash(b"__PROXMOX_FORMAT_HARDLINK__"); pub const PXAR_FORMAT_HARDLINK: u64 = 0x2c5e06f634f65b86; @@ -328,6 +329,12 @@ pub const CA_FORMAT_ACL_PERMISSION_READ: u64 = 4; pub const CA_FORMAT_ACL_PERMISSION_WRITE: u64 = 2; pub const CA_FORMAT_ACL_PERMISSION_EXECUTE: u64 = 1; +#[derive(Debug, Endian)] +#[repr(C)] +pub struct CaFormatQuotaProjID { + pub projid: u64, +} + /// Create SipHash values for goodby tables. //pub fn compute_goodbye_hash(name: &std::ffi::CStr) -> u64 { pub fn compute_goodbye_hash(name: &[u8]) -> u64 {