Skip to main content

build_create_resp

Function build_create_resp 

Source
pub fn build_create_resp(
    file_id: FileId,
    action: u32,
    times: [u64; 4],
    attrs: u32,
    alloc: u64,
    eof: u64,
    is_dir: bool,
    oplock: u8,
    contexts: &[u8],
) -> Vec<u8> 
Expand description

Build CREATE response body (§2.2.14.1).

Fixed part is 88 bytes; the FileId sits after Reserved2 at offset 64. contexts is a pre-chained create-context blob (see encode_create_contexts); when non-empty the context offset/length fields point at it (offset is header-relative).