Skip to main content

format_key

Function format_key 

Source
pub fn format_key(key: &DiskKey) -> String
Expand description

Format a key as (OBJECTID TYPE OFFSET) matching the C reference output.

Special formatting rules:

  • Qgroup keys: objectid and offset are formatted as LEVEL/SUBVOLID
  • UUID keys: objectid is formatted as 0x<16-char-hex>
  • Offset of u64::MAX is formatted as -1