[CRIU] [PATCH] mount: Use is_root_mount helper instead of strcmp
Pavel Emelyanov
xemul at parallels.com
Thu Nov 28 03:46:11 PST 2013
On 11/27/2013 05:31 PM, Cyrill Gorcunov wrote:
> It's designed specificly for that.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> mount.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mount.c b/mount.c
> index d244cd1939ff..71b330ecd6ca 100644
> --- a/mount.c
> +++ b/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;
> }
>
applied
More information about the CRIU
mailing list