[CRIU] [PATCH v2] mnt: Carry run-time device ID in mount_info

Pavel Emelyanov xemul at parallels.com
Thu Dec 3 07:53:37 PST 2015


> @@ -1950,6 +1979,9 @@ static int do_new_mount(struct mount_info *mi)
>  
>  	mi->mounted = true;
>  
> +	if (fetch_rt_stat(mi, mi->mountpoint))
> +		return -1;
> +

Why not in do_mount_one() right before calling propagate_mount()? This
would be _one_ place instead of two.

>  	if (tp->restore && tp->restore(mi))
>  		return -1;
>  
> @@ -2060,7 +2092,7 @@ do_bind:
>  
>  	mi->mounted = true;
>  
> -	return 0;
> +	return fetch_rt_stat(mi, mi->mountpoint);
>  }
>  
>  static bool can_mount_now(struct mount_info *mi)




More information about the CRIU mailing list