All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Chun Yan Liu <cyliu@suse.com>
Cc: Ian.Jackson@citrix.com, Jim Fehlig <JFEHLIG@suse.com>,
	Wei Liu <wei.liu2@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [RFC V7 3/3] xl snapshot-xxx Design
Date: Wed, 29 Oct 2014 10:22:34 +0000	[thread overview]
Message-ID: <1414578154.29975.7.camel@citrix.com> (raw)
In-Reply-To: <545117100200006600074118@soto.provo.novell.com>

On Wed, 2014-10-29 at 02:34 -0600, Chun Yan Liu wrote:
> >> > "xl snapshot-delete"  
> >> >   
> >> >     1), read snapshot json file from  
> >> >         "/var/lib/xen/snapshots/domain_uuid/snapshotdata-<snapshot_name>\  
> >> >         .libxl-json", parse the file and fill in libxl_domain_snapshot_info  
> >>   
> >> >         and commandline options, decide which domain snapshot to be   
> >> deleted.  
> >> >         To delete each domain snapshot, fill in  
> >> >         libxl_domain_snapshot_args and call libxl_domain_snapshot_delete().  
> >>   
> >> Depending on the state of the domain, much of this can be done with  
> >> unlink and/or calling out to external tools.  
> >  
> > Yes, xl or libvirt application can delete memory state file and delete 
> > disk snapshot (eg. call qemu-img to delete internal disk snapshot instead 
> > of qmp command, or delete external snapshot directly). 
> > Just both xl and libvirt do the same work repeatly. So, I propose 
> > libxl_domain_snapshot_delete API. Keep it or not? 
> 
> And here, any suggestion?

If it weren't for the need to do "storage management" in libxl (i.e.
call qemu-img) this would seem like a harmless enough helper. However
the need for it to do storage mgmt is concerning, since it means libxl
needs to learn more about the details of each container format it might
support using as a backend.

Perhaps it is a candidate for libxlu rather than libxl proper?

  reply	other threads:[~2014-10-29 10:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10  8:48 [RFC V7 0/3] domain snapshot document Chunyan Liu
2014-10-10  8:48 ` [RFC V7 1/3] libxl domain snapshot introduction Chunyan Liu
2014-10-20 15:59   ` Ian Campbell
2014-10-21  3:25     ` Chun Yan Liu
2014-10-10  8:48 ` [RFC V7 2/3] libxl domain snapshot API design Chunyan Liu
2014-10-20 16:11   ` Ian Campbell
2014-10-21  4:18     ` Chun Yan Liu
2014-10-22  3:59     ` Chun Yan Liu
2014-10-29 10:26       ` Ian Campbell
2014-11-03  7:37         ` Chun Yan Liu
2014-10-10  8:48 ` [RFC V7 3/3] xl snapshot-xxx Design Chunyan Liu
2014-10-20 16:39   ` Ian Campbell
2014-10-21  5:37     ` Chun Yan Liu
2014-10-22  4:10     ` Chun Yan Liu
2014-10-29  8:32     ` Chun Yan Liu
2014-10-29 10:19       ` Ian Campbell
2014-10-29  8:34     ` Chun Yan Liu
2014-10-29 10:22       ` Ian Campbell [this message]
2014-10-17  6:04 ` [RFC V7 0/3] domain snapshot document Chun Yan Liu
2014-10-17  9:50   ` Ian Campbell
2014-10-20 16:12 ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1414578154.29975.7.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=JFEHLIG@suse.com \
    --cc=cyliu@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.