[CRIU] [PATCH] crit: add a `show` option for human consumption

Tycho Andersen tycho.andersen at canonical.com
Wed Jul 22 12:04:10 PDT 2015


On Wed, Jul 22, 2015 at 08:04:33PM +0300, Pavel Emelyanov wrote:
> On 07/22/2015 07:49 PM, Tycho Andersen wrote:
> > On Wed, Jul 22, 2015 at 07:47:41PM +0300, Pavel Emelyanov wrote:
> >> On 07/22/2015 07:05 PM, Tycho Andersen wrote:
> >>> On Wed, Jul 22, 2015 at 07:01:51PM +0300, Ruslan Kuprieiev wrote:
> >>>> But how about dropping -i option for it?
> >>>
> >>> This does drop the -i option (it's positional instead of optional)
> >>
> >> So what's the syntax for this new action? For decode it's
> >>
> >> decode [-i filename] [-o filename] [--pretty] <all other arguments are not allowed>
> > 
> > It's just,
> > 
> > crit show foo.img
> 
> Hm... OK, what if we add some argument to crit decode, I don't know,
> say [-x something] so that I will be able to say
> 
> $ crit decode -i file.img --pretty -x something
> 
> How would criu show work? What would the
> 
> $ crit show -x something file.img

Right now I'm just re-using the decode path, so all we'd have to do (I
think) is add it to the argument parser for show and it should Just
Work; I can look into whether or not its possible to re-use parsers,
though.

Tycho


More information about the CRIU mailing list