[CRIU] [PATCH 1/3] mount: Introduce BTRFS engine
Pavel Emelyanov
xemul at parallels.com
Fri Nov 29 07:37:44 PST 2013
>>> +
>>> + fd = open(m->mountpoint, O_RDONLY);
>>> + if (fd < 0) {
>>> + pr_perror("Can't open mountpoint %s", m->mountpoint);
>>> + return -1;
>>> + }
>>> +
>>
>> Mountpoint can be unreachable. The open_mountpoint() handles this.
>
> Hmm, open_mountpoint can be used iif the complete mount tree is created,
> so I presume you prefer to defer btrfs parsing and do it as a final stage
> of mount points tree creation, right?
Well, yes, with that constraint you're right. Maybe we can implement it
in even lazier manner -- once we need to resolve dev_t for some mount_info
we fill read that information from disks. At that time the whole mount
tree will be ready.
Thoughts?
Thanks,
Pavel
More information about the CRIU
mailing list