use nix::fcntl::{fcntl, FcntlArg, OFlag};
mod encryption;
-pub use encryption::{drive_set_encryption, drive_get_encryption, has_encryption};
+pub use encryption::{drive_set_encryption, drive_get_encryption};
mod volume_statistics;
use proxmox_uuid::Uuid;
use crate::sgutils2::{alloc_page_aligned_buffer, SgRaw};
-/// Test if drive supports hardware encryption
-///
-/// We search for AES_GCM algorithm with 256bits key.
-pub fn has_encryption<F: AsRawFd>(file: &mut F) -> bool {
- let data = match sg_spin_data_encryption_caps(file) {
- Ok(data) => data,
- Err(_) => return false,
- };
- decode_spin_data_encryption_caps(&data).is_ok()
-}
-
/// Set or clear encryption key
///
/// We always use mixed mode,