Searched refs:blkdevice (Results 1 – 1 of 1) sorted by relevance
46 let blkdevice = Path::new(matches.get_one::<String>("blkdevice").unwrap()); in main() localVariable50 encryptedstore_init(blkdevice, key, mountpoint).context(format!( in main()52 blkdevice, mountpoint in main()59 arg!(--blkdevice <FILE> "the block device backing the encrypted storage").required(true), in clap_command()65 fn encryptedstore_init(blkdevice: &Path, key: &str, mountpoint: &Path) -> Result<()> { in encryptedstore_init()67 std::fs::metadata(blkdevice) in encryptedstore_init()68 .context(format!("Failed to get metadata of {:?}", blkdevice))? in encryptedstore_init()72 blkdevice in encryptedstore_init()76 needs_formatting(blkdevice).context("Unable to check if formatting is required")?; in encryptedstore_init()78 enable_crypt(blkdevice, key, "cryptdev").context("Unable to map crypt device")?; in encryptedstore_init()