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
e2695f0e
Unverified
Commit
e2695f0e
authored
Nov 01, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups/cgfsng: remove is_lxcfs()
We don't need to parse fuse.lxcfs entries. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
c2712f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-10
No files found.
src/lxc/cgroups/cgfsng.c
View file @
e2695f0e
...
@@ -742,15 +742,6 @@ static bool all_controllers_found(void)
...
@@ -742,15 +742,6 @@ static bool all_controllers_found(void)
return
true
;
return
true
;
}
}
/* Return true if the fs type is fuse.lxcfs */
static
bool
is_lxcfs
(
const
char
*
line
)
{
char
*
p
=
strstr
(
line
,
" - "
);
if
(
!
p
)
return
false
;
return
strncmp
(
p
,
" - fuse.lxcfs "
,
14
)
==
0
;
}
/*
/*
* Get the controllers from a mountinfo line
* Get the controllers from a mountinfo line
* There are other ways we could get this info. For lxcfs, field 3
* There are other ways we could get this info. For lxcfs, field 3
...
@@ -1095,7 +1086,7 @@ static bool parse_hierarchies(void)
...
@@ -1095,7 +1086,7 @@ static bool parse_hierarchies(void)
bool
is_cgroup_v2
,
writeable
;
bool
is_cgroup_v2
,
writeable
;
is_cgroup_v2
=
is_cgroupfs_v2
(
line
);
is_cgroup_v2
=
is_cgroupfs_v2
(
line
);
if
(
!
is_
lxcfs
(
line
)
&&
!
is_
cgroupfs_v1
(
line
)
&&
!
is_cgroup_v2
)
if
(
!
is_cgroupfs_v1
(
line
)
&&
!
is_cgroup_v2
)
continue
;
continue
;
controller_list
=
get_controllers
(
klist
,
nlist
,
line
);
controller_list
=
get_controllers
(
klist
,
nlist
,
line
);
...
...
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