Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
a0f38dbf
Unverified
Commit
a0f38dbf
authored
Jul 01, 2021
by
Stéphane Graber
Committed by
GitHub
Jul 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3891 from brauner/2021-07-01.fixes
cgroups: handle funky cgroup layouts
parents
d31bfd24
f4afdfbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
cgfsng.c
src/lxc/cgroups/cgfsng.c
+18
-5
No files found.
src/lxc/cgroups/cgfsng.c
View file @
a0f38dbf
...
...
@@ -3194,8 +3194,15 @@ static int __initialize_cgroups(struct cgroup_ops *ops, bool relative,
dfd_base
=
open_at
(
dfd_mnt
,
current_cgroup
,
PROTECT_OPATH_DIRECTORY
,
PROTECT_LOOKUP_BENEATH_XDEV
,
0
);
if
(
dfd_base
<
0
)
return
syserror
(
"Failed to open %d/%s"
,
dfd_mnt
,
current_cgroup
);
if
(
dfd_base
<
0
)
{
if
(
errno
!=
ENOENT
)
return
syserror
(
"Failed to open %d/%s"
,
dfd_mnt
,
current_cgroup
);
SYSTRACE
(
"Current cgroup %d/%s does not exist (funky cgroup layout?)"
,
dfd_mnt
,
current_cgroup
);
continue
;
}
dfd
=
dfd_base
;
}
...
...
@@ -3265,9 +3272,15 @@ static int __initialize_cgroups(struct cgroup_ops *ops, bool relative,
dfd_base
=
open_at
(
dfd_mnt
,
current_cgroup
,
PROTECT_OPATH_DIRECTORY
,
PROTECT_LOOKUP_BENEATH_XDEV
,
0
);
if
(
dfd_base
<
0
)
return
syserror
(
"Failed to open %d/%s"
,
dfd_mnt
,
current_cgroup
);
if
(
dfd_base
<
0
)
{
if
(
errno
!=
ENOENT
)
return
syserror
(
"Failed to open %d/%s"
,
dfd_mnt
,
current_cgroup
);
SYSTRACE
(
"Current cgroup %d/%s does not exist (funky cgroup layout?)"
,
dfd_mnt
,
current_cgroup
);
continue
;
}
dfd
=
dfd_base
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment