[CRIU] test for external mounts

Pavel Emelyanov xemul at parallels.com
Tue Apr 21 13:28:32 PDT 2015


On 04/21/2015 11:21 PM, Tycho Andersen wrote:

>> And while in the 11'th I see the 84'th mountpoint, here it is
>>
>>>         {
>>>             "shared_id": 0, 
>>>             "parent_mnt_id": 49, 
>>>             "root_dev": 265289729, 
>>>             "fstype": 0, 
>>>             "source": "/dev/disk/by-uuid/6c5a78e0-95fa-49a8-aa91-a8093d295e58", 
>>>             "flags": "0x200000", 
>>>             "mountpoint": "/", 
>>>             "master_id": 0, 
>>>             "root": "/home/ubuntu/criu/test", 
>>>             "options": "data=ordered", 
>>>             "mnt_id": 84
>>>         }
>>
>> Its parent is not 83 as in logs, but 49. And 49 is not in the images too.
> 
> Yes, what I don't understand is exactly how the test suite sets these
> up. 

The namespace for test itself is set up by zdtm/lib/ns.c's prepare_mntns()
call (the ZDTM_NEWNS variable is set by zdtm.sh). It does pretty simple
namespace.

The unshare() call in your test just creates the duplicate one.

> I guess this is because of one of my unshare() calls? Anyway, this
> test won't work if we merge the pivot root test patch, so I'll wait
> and see about that :)

OK

-- Pavel


More information about the CRIU mailing list