Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
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
zhul
criu
Commits
a36917d4
Commit
a36917d4
authored
Oct 09, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mnt: Clean up namespaces walking code
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
2d3fa5e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
mount.c
mount.c
+2
-9
No files found.
mount.c
View file @
a36917d4
...
@@ -2078,7 +2078,7 @@ int mntns_get_root_by_mnt_id(int mnt_id)
...
@@ -2078,7 +2078,7 @@ int mntns_get_root_by_mnt_id(int mnt_id)
return
mntns_get_root_fd
(
mntns
);
return
mntns_get_root_fd
(
mntns
);
}
}
static
int
walk_mnt_ns
(
int
(
*
cb
)(
struct
ns_id
*
,
struct
mount_info
*
,
void
*
),
void
*
arg
)
int
collect_mnt_namespaces
(
void
)
{
{
struct
mount_info
*
pms
;
struct
mount_info
*
pms
;
struct
ns_id
*
ns
;
struct
ns_id
*
ns
;
...
@@ -2116,11 +2116,9 @@ static int walk_mnt_ns(int (*cb)(struct ns_id *, struct mount_info *, void *), v
...
@@ -2116,11 +2116,9 @@ static int walk_mnt_ns(int (*cb)(struct ns_id *, struct mount_info *, void *), v
if
(
pms
==
NULL
)
if
(
pms
==
NULL
)
goto
err
;
goto
err
;
if
(
cb
&&
cb
(
ns
,
pms
,
arg
))
goto
err
;
mntinfo_add_list
(
pms
);
mntinfo_add_list
(
pms
);
}
}
if
(
collect_shared
(
mntinfo
))
if
(
collect_shared
(
mntinfo
))
goto
err
;
goto
err
;
if
(
validate_mounts
(
mntinfo
,
true
))
if
(
validate_mounts
(
mntinfo
,
true
))
...
@@ -2131,11 +2129,6 @@ err:
...
@@ -2131,11 +2129,6 @@ err:
return
ret
;
return
ret
;
}
}
int
collect_mnt_namespaces
(
void
)
{
return
walk_mnt_ns
(
NULL
,
NULL
);
}
int
dump_mnt_namespaces
(
void
)
int
dump_mnt_namespaces
(
void
)
{
{
struct
ns_id
*
nsid
;
struct
ns_id
*
nsid
;
...
...
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