mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
mount: Use is_root_mount helper instead of strcmp
It's designed specificly for that. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
d7141750d2
commit
f4e40ef7e2
1 changed files with 1 additions and 1 deletions
2
mount.c
2
mount.c
|
|
@ -135,7 +135,7 @@ static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
|
|||
p = __lookup_mnt_id(list, m->parent_mnt_id);
|
||||
if (!p) {
|
||||
/* This should be / */
|
||||
if (root == NULL && !strcmp(m->mountpoint, "/")) {
|
||||
if (root == NULL && is_root_mount(m)) {
|
||||
root = m;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue