pub fn luks2_format<'a>(
cd: &mut RawDevice,
cipher: &str,
cipher_mode: &str,
mk_bits: usize,
data_alignment: usize,
sector_size: u32,
label: Option<&'a str>,
subsystem: Option<&'a str>,
data_device: Option<&Path>,
maybe_uuid: Option<&Uuid>,
pbkdf: Option<&'a Luks2FormatPbkdf<'_>>,
integrity: Option<&'a Luks2FormatIntegrity<'_>>,
) -> Result<()>Expand description
Format a new crypt device as LUKS2 but do not activate it
Note this does not add an active keyslot