[libvirt] [PATCHv4 06/18] blockjob: add 'blockcopy' to virsh

Eric Blake eblake at redhat.com
Sun Apr 15 00:59:22 UTC 2012


On 04/13/2012 03:55 AM, Jiri Denemark wrote:
> On Mon, Apr 09, 2012 at 21:52:15 -0600, Eric Blake wrote:
>> Rather than further overloading 'blockpull', I decided to create a
>> new virsh command to expose the new flags of virDomainBlockRebase.
>>
>> Someday, I'd also like to make blockpull and blockcopy have a
>> synchronous mode, which blocks until the event happens or Ctrl-C
>> is pressed, as well as a --verbose flag to print status updates
>> before the job finishes - but not today.

Actually, I ended up doing this for v5 :)


>> +
>> +static const vshCmdOptDef opts_block_copy[] = {
>> +    {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
>> +    {"path", VSH_OT_DATA, VSH_OFLAG_REQ, N_("Fully-qualified path of disk")},
>> +    {"dest", VSH_OT_DATA, VSH_OFLAG_REQ, N_("path of the copy to create")},
>> +    {"bandwidth", VSH_OT_DATA, VSH_OFLAG_NONE, N_("Bandwidth limit in MB/s")},
>> +    {"shallow", VSH_OT_BOOL, 0, N_("make the copy share a backing chain")},
>> +    {"reuse-external", VSH_OT_BOOL, 0, N_("reuse existing destination")},
>> +    {"raw", VSH_OT_BOOL, 0, N_("use raw destination file")},
>> +    {NULL, 0, 0, NULL}
>> +};
> 
> You are pretty inconsistent in upper/lower-case letter at the beginning of
> each description string.

Copy-and-paste strikes again.  I think we've been favoring lower-case
elsewhere, so I'll make it consistent on the respin.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120414/09a6ba38/attachment-0001.sig>


More information about the libvir-list mailing list