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
08b893fd
Commit
08b893fd
authored
Dec 26, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mount: Add comment to is_root_xxx checks
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
a0049bfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
mount.c
mount.c
+9
-0
No files found.
mount.c
View file @
08b893fd
...
@@ -50,11 +50,20 @@ static inline int is_root(char *p)
...
@@ -50,11 +50,20 @@ static inline int is_root(char *p)
return
p
[
0
]
==
'/'
&&
p
[
1
]
==
'\0'
;
return
p
[
0
]
==
'/'
&&
p
[
1
]
==
'\0'
;
}
}
/* True for the root mount (the topmost one) */
static
inline
int
is_root_mount
(
struct
mount_info
*
mi
)
static
inline
int
is_root_mount
(
struct
mount_info
*
mi
)
{
{
return
is_root
(
mi
->
mountpoint
);
return
is_root
(
mi
->
mountpoint
);
}
}
/*
* True if the mountpoint target is root on its FS.
*
* This is used to determine whether we need to postpone
* mounting. E.g. one can bind mount some subdir from a
* disk, and in this case we'll have to get the root disk
* mount first, then bind-mount it. See do_mount_one().
*/
static
inline
int
fsroot_mounted
(
struct
mount_info
*
mi
)
static
inline
int
fsroot_mounted
(
struct
mount_info
*
mi
)
{
{
return
is_root
(
mi
->
root
);
return
is_root
(
mi
->
root
);
...
...
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