[Devel] Re: [PATCH] Restore task fs_root and pwd (v2)

Serge E. Hallyn serue at us.ibm.com
Mon Dec 28 18:58:46 PST 2009


Quoting Serge E. Hallyn (serue at us.ibm.com):
> Checkpoint and restore task->fs.  Tasks sharing task->fs will
> share them again after restart.

Sigh.  Shoulda written testcases in advance :)  pwd restoration
is fine.  And technically root restoration is fine too.  If any
task which is not the container init did a chroot, the chroot is
restored.  However, the container init is chrooted (whether it
was started using 'chroot app' or did a chroot() when it started
up), then restart fails because the executable filename is relative
to the chroot (i.e. /fssleep instead of /root/cr_tests/taskfs/tmp/fssleep),
and isn't found.

-serge
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list