Xuewei Niu
b8031f1a21
fs: Move all files to fs subdirectory
...
Prepare to implement FsManager, which should be done in the following-up
commits. Apart from that, no code is not modified.
Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com >
2025-07-18 15:17:12 +08:00
yaoyinnan
c9d02afe33
cgroup: support to set threaded mode in cgroup v2
...
Support to set threaded mode in cgroup v2. The premise of switching to threaded mode is that only the cgroup of cpuset, cpu and pids is supported.
Fixes : #90
Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com >
2022-12-30 12:46:50 +08:00
Felix Obenhuber
92122de48d
clippy: Fix clippy version 0.1.60
...
Fix clippy lints from clippy 0.1.60 (7737e0b 2022-04-04).
Signed-off-by: Felix Obenhuber <felix@obenhuber.de >
2022-04-28 16:36:57 +02:00
Tim Zhang
ec4cda1dd9
Fix clippy for rust 1.53
...
There are new lints are added in clippy for rust 1.53
Signed-off-by: Tim Zhang <tim@hyper.sh >
2021-06-30 19:07:56 +08:00
Tim Zhang
eb6577e3e0
Change package name to cgroups-rs
...
We need a new package name to create a new crate
Signed-off-by: Tim Zhang <tim@hyper.sh >
2020-12-21 15:46:30 +08:00
Tim Zhang
438d774866
Fix test
...
Fix test
Signed-off-by: Tim Zhang <tim@hyper.sh >
2020-12-17 17:56:46 +08:00
Tim Zhang
fbd7164c29
Fix warnings in tests
...
Remove following warnings
- unused import
- unused Result
Signed-off-by: Tim Zhang <tim@hyper.sh >
2020-12-17 17:56:46 +08:00
Tim Zhang
f34225411e
Remove Box wrap of Cgroup.hire
...
It's unnecessary.
Signed-off-by: Tim Zhang <tim@hyper.sh >
2020-12-17 17:56:46 +08:00
bin liu
be617190c7
hugetlb: update test to avoid depending on test env
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-09-09 17:09:12 +08:00
bin liu
250ada183a
cargo fmt
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-09-09 16:42:55 +08:00
bin liu
ff6a0ea82a
add SPDX-License-Identifier for modified files
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-09-09 13:35:46 +08:00
bin liu
c3912223d0
use let Some() instead of is_some() to make codes clear
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-09-09 13:26:18 +08:00
bin liu
cd2c748a74
add systemd controller; add more tests; update blkio stat for v2
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-09-07 14:18:41 +08:00
bin liu
9fe6cb58e4
change *limit* in memory from u64 to i64
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-08-27 23:06:44 +08:00
bin liu
c702852fd7
add disable oom_control function
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-08-25 11:35:01 +08:00
bin liu
9d70467327
add hugetlb functions
...
Signed-off-by: bin liu <bin@hyper.sh >
2020-08-25 10:58:56 +08:00