Skip to main content

fs_create

Function fs_create 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn fs_create( total_blocks: u64, master_key: *const u8, master_key_len: usize, ) -> *mut FsHandle
Expand description

Create a new in-memory filesystem handle.

total_blocks: number of blocks in the virtual block device. master_key: pointer to the master encryption key bytes. master_key_len: length of master_key in bytes (should be 32).

Returns a pointer to an opaque handle, or null on failure.

ยงSafety

master_key must point to master_key_len valid bytes.