[CRIU] [PATCH 2/4] mounts: use relative paths for mountpoints (v2)

Pavel Emelyanov xemul at parallels.com
Fri Feb 28 07:53:33 PST 2014


On 02/28/2014 06:17 PM, Andrew Vagin wrote:

>>> How about bind mount's source? Don't we change the code from
>>>
>>> # chroot /new-root
>>> # mount /foo /bar --bind
>>>
>>> into
>>>
>>> # chdir /new-root
>>> # mount /foo ./bar --bind
>>>
>>> ?
>>
>> Good question. Will check.
> 
> snprintf(rpath, sizeof(rpath), "%s%s", mi->bind->mountpoint, mi->root);
> 
> so this patch does nothing wrong with bind mounts

OK. Add code comment about this.

>>>
>>>>  
>>>>  		pr_debug("\t\tGetting source for %d\n", pm->mnt_id);
>>>>  		pm->source = xstrdup(me->source);
>>>>
>>>
>>>
> .
> 




More information about the CRIU mailing list