All of lore.kernel.org
 help / color / mirror / Atom feed
* restart (mktree) program usage
@ 2009-09-09  5:56 Sukadev Bhattiprolu
       [not found] ` <20090909055636.GA27622-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Sukadev Bhattiprolu @ 2009-09-09  5:56 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Containers

I have a usage question on the 'restart' (formerly mktree) program.

In the following container c/r case: 

	- create a container
	- log in to the container,
	- restore filesystem(s) from snapshot
	- restart application from checkpoint

On restart, suppose the user wants to restore the original pids.
But he does not want to create a new pid-ns, (since he just created
the container, and is sure the original pids are available).

To accomplish this the user has to specify the arguments in the following
order right  (since -pids implies --pidns).

	restart --pids --no-pidns

IOW, the order of the arguments matters.

Would it be easier to understand if --pids did not imply --pidns ?

(Or in fact the reverse seems to make more sense -i.e --pidns implies
--pids, with a new option, --no-pids if user absolutely hates the pids
he was dealt before checkpoint :-)

	$ restart
		don't create pid ns, don't try to restore pids

	$ restart --pids
		try to restore original pids, don't create pid-ns

	$ restart --pidns
		create new pid-namespace and restore original pids

	$ restart --pidns --no-pids
	$ restart --no-pids --pidns
		create new pid-namespace, DO NOT restore pids

Or maybe drop implying and let user explicitly specify one, none or
both of --pids, --pidns ?

Sukadev

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-18  6:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09  5:56 restart (mktree) program usage Sukadev Bhattiprolu
     [not found] ` <20090909055636.GA27622-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-09 22:26   ` Oren Laadan
     [not found]     ` <4AA82B7C.8080107-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-17  1:35       ` Sukadev Bhattiprolu
     [not found]         ` <20090917013546.GA30161-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-17  3:14           ` Oren Laadan
     [not found]             ` <4AB1A99D.3020307-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-17 13:18               ` Serge E. Hallyn
     [not found]                 ` <20090917131843.GA29297-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-17 16:53                   ` Sukadev Bhattiprolu
     [not found]                     ` <20090917165311.GB13855-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-17 17:13                       ` Serge E. Hallyn
2009-09-17 17:58                   ` Oren Laadan
     [not found]                     ` <4AB278D0.50604-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-17 18:20                       ` Serge E. Hallyn
2009-09-18  6:58           ` Cedric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.