mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
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>
This commit is contained in:
+3
-3
@@ -4,12 +4,12 @@
|
||||
//
|
||||
|
||||
//! Simple unit tests about the CPU control groups system.
|
||||
use cgroups_rs::cpu::CpuController;
|
||||
use cgroups_rs::Cgroup;
|
||||
use cgroups_rs::fs::cpu::CpuController;
|
||||
use cgroups_rs::fs::Cgroup;
|
||||
|
||||
#[test]
|
||||
fn test_cfs_quota_and_periods() {
|
||||
let h = cgroups_rs::hierarchies::auto();
|
||||
let h = cgroups_rs::fs::hierarchies::auto();
|
||||
let cg = Cgroup::new(h, String::from("test_cfs_quota_and_periods")).unwrap();
|
||||
|
||||
let cpu_controller: &CpuController = cg.controller_of().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user