From 15b65c5e5e998efdf8eb87387c3218e650ffe528 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Mon, 25 Jan 2021 11:27:39 +0800 Subject: [PATCH 1/2] Apply customized attributes in MemController.apply Fixes: #25 Signed-off-by: Tim Zhang --- src/memory.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/memory.rs b/src/memory.rs index 8ceb15a..b8e92a1 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -460,6 +460,10 @@ impl ControllerInternal for MemController { update!(self, set_tcp_limit, memres.kernel_tcp_memory_limit); update!(self, set_swappiness, memres.swappiness); + memres.attrs.iter().for_each(|(k, v)| { + let _ = self.set(k, v); + }); + Ok(()) } } From 853ed46993afeb6cc0c299a08f823665ad7131ee Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Mon, 25 Jan 2021 12:14:02 +0800 Subject: [PATCH 2/2] release: v0.2.2 Bump version to 0.2.2 Signed-off-by: Tim Zhang --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f6bdbb3..f7a20bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ repository = "https://github.com/kata-containers/cgroups-rs" keywords = ["linux", "cgroup", "containers", "isolation"] categories = ["os", "api-bindings", "os::unix-apis"] license = "MIT OR Apache-2.0" -version = "0.2.1" +version = "0.2.2" authors = ["The Kata Containers community ", "Levente Kurusa ", "Sam Wilson "] edition = "2018"