File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ fn start_tokio_runtime(args: &MayastorCliArgs) {
97
97
warn ! ( "RDMA is requested to be enabled for Mayastor NVMEoF target" ) ;
98
98
}
99
99
100
+ // Use as-is basis for diskpool encryption since the spdk build is enabled
101
+ // --with-crypto.
102
+ // TODO: Once dpdk crypto modules are supported, we'll provide a switch
103
+ // later on to control the behaviour of choosing to use accel_sw based
104
+ // encryption if dpdk module(fips) isn't usable on platform.
105
+ env:: set_var ( "ENABLE_DISKPOOL_ENCRYPTION" , "true" ) ;
106
+
100
107
unsafe {
101
108
spdk_rs:: libspdk:: spdk_blob_enable_cluster_unmap ( args. bs_cluster_unmap ) ;
102
109
}
Original file line number Diff line number Diff line change @@ -270,11 +270,13 @@ impl MayastorFeatures {
270
270
let lvm = env:: var ( "ENABLE_LVM" ) . as_deref ( ) == Ok ( "true" ) ;
271
271
let snapshot_rebuild = env:: var ( "ENABLE_SNAPSHOT_REBUILD" ) . as_deref ( ) == Ok ( "true" ) ;
272
272
let rdma_capable_io_engine = env:: var ( "ENABLE_RDMA" ) . as_deref ( ) == Ok ( "true" ) ;
273
+ let diskpool_encryption = env:: var ( "ENABLE_DISKPOOL_ENCRYPTION" ) . as_deref ( ) == Ok ( "true" ) ;
273
274
MayastorFeatures {
274
275
asymmetric_namespace_access : ana,
275
276
logical_volume_manager : lvm,
276
277
snapshot_rebuild,
277
278
rdma_capable_io_engine,
279
+ diskpool_encryption,
278
280
}
279
281
}
280
282
/// Get all the supported and enabled features.
Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ pub struct MayastorFeatures {
394
394
pub snapshot_rebuild : bool ,
395
395
/// When set to true, the io-engine instance supports RDMA transport.
396
396
pub rdma_capable_io_engine : bool ,
397
+ /// Diskpool encryption capability.
398
+ pub diskpool_encryption : bool ,
397
399
}
398
400
impl MayastorFeatures {
399
401
/// Check if LVM feature is enabled.
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ impl From<MayastorFeatures> for host_rpc::MayastorFeatures {
98
98
logical_volume_manager : Some ( f. logical_volume_manager ) ,
99
99
snapshot_rebuild : Some ( f. snapshot_rebuild ) ,
100
100
rdma_capable_io_engine : Some ( f. rdma_capable_io_engine ) ,
101
+ diskpool_encryption : Some ( f. diskpool_encryption ) ,
101
102
}
102
103
}
103
104
}
You can’t perform that action at this time.
0 commit comments