Re: [PATCH v6 5/6] virsh: Expose new virDomainFSFreeze and virDomainFSThaw API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/30/14 15:44 , "Eric Blake" <eblake@xxxxxxxxxx> wrote:

>On 04/30/2014 10:52 AM, Tomoki Sekiyama wrote:
>
>> 
>>> I'd think it'd be better to just allow multiple instances of
>>> the arg eg
>>>
>>>  virsh fsfreeze  --mount <path1> --mount <path2>   <guest>
>> 
>> the virsh option parser rejects repeated options by
>> 
>>   error: option --mount already seen
>> 
>> so I chose comma separated list, which is also used in the
>> "undefine --storage" option that takes a list of targets or source
>>paths.
>> 
>> Do we need to extend the parser to enable the repeated options?
>> 
>
>The parser already accepts repeated options (well, precisely ONE
>repeated option), by making that option be last in the command
>description and giving it .type = VSH_OT_ARGV.  For comparison, see the
>echo command in virsh.c or the send-key command in virsh-domain.c.


Oh, I'd overlooked the type. Thank you for the references.
I'll update this with VSH_OT_ARGV.

Regards,
Tomoki Sekiyama


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]