Skip to content

Commit 60b2966

Browse files
committed
manager: Make create_cgroups() public
The kata-agent expects to create sandbox cgroup without need to wait for the first process/thread to be added to the cgroup. Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
1 parent a5db7de commit 60b2966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/manager/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl FsManager {
8585

8686
impl FsManager {
8787
/// Create the cgroups if they are not created yet.
88-
pub(crate) fn create_cgroups(&mut self) -> Result<()> {
88+
pub fn create_cgroups(&mut self) -> Result<()> {
8989
if self.exists() {
9090
return Ok(());
9191
}

0 commit comments

Comments
 (0)