[CRIU] [PATCH 5/9] mounts: handle bind-mounts
Pavel Emelyanov
xemul at parallels.com
Wed Jul 10 07:04:20 EDT 2013
>>>> I don't understand what the mnt_bind list links together.
>>>
>>> It links together all mounts, which are the same except root. Only one
>>
>> What does "mounts are the same" mean?
>
> Two mounts are the same, if their sources, fstypes, options are equals.
OK. Only the mountpoint differs. Rename the mntcmp into mounts_equal and
write a comment about it.
> mount -t ext4 -o ro /dev/sda1 /xxx
> mount -t ext4 -o ro /dev/sda1 /yyy
>
> this is equal to
> mount -t ext4 -o ro /dev/sda1 /xxx
> mount --bind /yyy /xxx
>
> isn't it?
Yes.
More information about the CRIU
mailing list