Re: [RFC v7][PATCH 2/9] General infrastructure for checkpoint restart
From: Daniel Jacobowitz <hidden>
Date: 2008-10-22 03:16:19
Also in:
linux-mm, lkml
On Tue, Oct 21, 2008 at 09:33:19PM -0400, Oren Laadan wrote:
quoted
quoted
What happens if I pass it a pid of a process which I _do_ own, but it does not refer to a container's init process?I would assume that do_checkpoint() would return -EINVAL, but it's a great question: Oren, did you have another plan?Since we intentional provide minimal functionality to keep the patchset simple and allow easy review - we only checkpoint one task; it doesn't really matter because we don't deal with the entire container. With the ability to checkpoint multiple process we will have to ensure that we checkpoint an entire container. I planned to return -EINVAL if the target task isn't a container init(1). Another option, if people prefer, is to use any task in a container to "represent" the entire container.
I haven't been following - but why this whole container restriction? Checkpoint/restart of individual processes is very useful too. There are issues with e.g. IPC, but I'm not convinced they're substantially different than the issues already present for a container. -- Daniel Jacobowitz CodeSourcery -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>