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 <c.ebner@proxmox.com>
This commit is contained in:
parent
042babe4e7
commit
7312ab9eef
@ -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_USER: u64 = 0xbdf03df9bd010a91;
|
||||||
pub const CA_FORMAT_ACL_DEFAULT_GROUP: u64 = 0xa0cb1168782d1f51;
|
pub const CA_FORMAT_ACL_DEFAULT_GROUP: u64 = 0xa0cb1168782d1f51;
|
||||||
pub const CA_FORMAT_FCAPS: u64 = 0xf7267db0afed0629;
|
pub const CA_FORMAT_FCAPS: u64 = 0xf7267db0afed0629;
|
||||||
|
pub const CA_FORMAT_QUOTA_PROJID:u64 = 0x161baf2d8772a72b;
|
||||||
|
|
||||||
// compute_goodbye_hash(b"__PROXMOX_FORMAT_HARDLINK__");
|
// compute_goodbye_hash(b"__PROXMOX_FORMAT_HARDLINK__");
|
||||||
pub const PXAR_FORMAT_HARDLINK: u64 = 0x2c5e06f634f65b86;
|
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_WRITE: u64 = 2;
|
||||||
pub const CA_FORMAT_ACL_PERMISSION_EXECUTE: u64 = 1;
|
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.
|
/// Create SipHash values for goodby tables.
|
||||||
//pub fn compute_goodbye_hash(name: &std::ffi::CStr) -> u64 {
|
//pub fn compute_goodbye_hash(name: &std::ffi::CStr) -> u64 {
|
||||||
pub fn compute_goodbye_hash(name: &[u8]) -> u64 {
|
pub fn compute_goodbye_hash(name: &[u8]) -> u64 {
|
||||||
|
Loading…
Reference in New Issue
Block a user