mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 19:21:53 +00:00
runtime-rs: update LinuxCgroup type
Update translation code to match CCv0 changes Co-authored-by: stevenhorsman <steven@uk.ibm.com> Signed-off-by: Georgina Kinge <georgina.kinge@ibm.com>
This commit is contained in:
parent
bb9bbc7523
commit
acb7a16522
2
src/libs/protocols/.gitignore
vendored
2
src/libs/protocols/.gitignore
vendored
@ -7,5 +7,7 @@ src/empty.rs
|
|||||||
src/health.rs
|
src/health.rs
|
||||||
src/health_ttrpc.rs
|
src/health_ttrpc.rs
|
||||||
src/health_ttrpc_async.rs
|
src/health_ttrpc_async.rs
|
||||||
|
src/image.rs
|
||||||
|
src/image_ttrpc.rs
|
||||||
src/oci.rs
|
src/oci.rs
|
||||||
src/types.rs
|
src/types.rs
|
||||||
|
@ -105,7 +105,7 @@ impl From<oci::LinuxDeviceCgroup> for crate::oci::LinuxDeviceCgroup {
|
|||||||
fn from(from: oci::LinuxDeviceCgroup) -> Self {
|
fn from(from: oci::LinuxDeviceCgroup) -> Self {
|
||||||
crate::oci::LinuxDeviceCgroup {
|
crate::oci::LinuxDeviceCgroup {
|
||||||
Allow: from.allow,
|
Allow: from.allow,
|
||||||
Type: from.r#type,
|
Type: from.r#type.map_or("".to_string(), |t| t as String),
|
||||||
Major: from.major.map_or(0, |t| t as i64),
|
Major: from.major.map_or(0, |t| t as i64),
|
||||||
Minor: from.minor.map_or(0, |t| t as i64),
|
Minor: from.minor.map_or(0, |t| t as i64),
|
||||||
Access: from.access,
|
Access: from.access,
|
||||||
@ -478,7 +478,7 @@ impl From<crate::oci::LinuxDeviceCgroup> for oci::LinuxDeviceCgroup {
|
|||||||
|
|
||||||
oci::LinuxDeviceCgroup {
|
oci::LinuxDeviceCgroup {
|
||||||
allow: from.get_Allow(),
|
allow: from.get_Allow(),
|
||||||
r#type: from.take_Type(),
|
r#type: Some(from.take_Type()),
|
||||||
major,
|
major,
|
||||||
minor,
|
minor,
|
||||||
access: from.take_Access(),
|
access: from.take_Access(),
|
||||||
|
Loading…
Reference in New Issue
Block a user