From 7312ab9eef8c030985b155801231653586a15430 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Wed, 29 May 2019 14:34:04 +0200 Subject: [PATCH] src/pxar/format_definition.rs: add CA_FORMAT_QUOTA_PROJID and CaFormatQuotaProjID Defines the types needed to store/restore quota project ids in pxar Signed-off-by: Christian Ebner --- src/pxar/format_definition.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 {