<div dir="ltr"><div></div>path [/usr/local/lib/lxc/rootfs/root] read_fd_link() return : 30<br>I have mounted the /dev of host on /dev inside my container.<br><div><br>(03.347637) Dumping path for 4 fd via self 43 [/usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>(03.347847) [nyc_fd] The required root is already opened. get_service_fd() returns : 1017<br>(03.348197) [nyc_fd] Going into fstatat()-> [mntns_root : 1017],[rpath : ./usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>(03.348393) [nyc_fd] Out of fstatat()-> [ret : -1],[rpath : ./usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>(03.348583) [nyc_fd] Going into dump_linked_remap()<br>(03.349177) [nyc_fd] The required root is already opened. get_service_fd() returns : 1017<br>(03.349432) [nyc_fd] Doing linkat() [mntns_root : 1017],[link_name : ./usr/local/lib/lxc/rootfs/root/dev/link_remap.4]<br><br>(03.349756) [nyc_fd] bad_path [/usr/local/lib/lxc/rootfs/root] ,read_fd_link() return : 30<br><br>(03.350027) Error (files-reg.c:515): Can't link remap to /usr/local/lib/lxc/rootfs/root/dev/__properties__: No such file or directory<br>(03.351097) [nyc_fd] Error in dump_one_reg_file->check_path_remap() <br>(03.351266) [nyc_fd] Going into dump_task_files_seized() : dump_one_file()<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 8:10 PM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/27/2015 05:25 PM, beproject criu wrote:<br>
> This is the flow before error,could you get what's wrong :<br>
><br>
> (02.352922) Dumping path for 4 fd via self 43 [/usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>
> (02.353079) [nyc_fd] The required root is already opened. get_service_fd() returns : 1017<br>
> (02.353216) [nyc_fd] Going into fstatat()-> [mntns_root : 1017],[rpath : ./usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>
> (02.353398) [nyc_fd] Out of fstatat()-> [ret : -1],[rpath : ./usr/local/lib/lxc/rootfs/root/dev/__properties__]<br>
> (02.353574) [nyc_fd] Going into dump_linked_remap()<br>
> (02.354191) [nyc_fd] The required root is already opened. get_service_fd() returns : 1017<br>
> (02.354431) [nyc_fd] Doing linkat() [mntns_root : 1017],[link_name : ./usr/local/lib/lxc/rootfs/root/dev/link_remap.4]<br>
> (02.354747) Error (files-reg.c:510): Can't link remap to /usr/local/lib/lxc/rootfs/root/dev/__properties__: No such file or directory<br>
> (02.355915) [nyc_fd] Error in dump_one_reg_file->check_path_remap()<br>
> (02.356066) [nyc_fd] Going into dump_task_files_seized() : dump_one_file()<br>
<br>
</span>OK, so in both cases we access file af fd 1017 and sub-path "./user/local/lib/lxc/roootfs/root/dev/__properties__"<br>
and you tell that this file actually exists in container, right?<br>
<br>
The failing fstatat then means, that the 1017 descriptor points to some bad path. Can you check where? We<br>
have a helper called read_fd_link() helper for that, see the fsnotify.c line 455 for code example.<br>
<br>
And one more question -- does your container live in another mount namespace, or shared one with host?<br>
<br>
Thanks,<br>
Pavel<br>
<br>
</blockquote></div><br></div>