Re: [PATCH v3 10/10] Allow balloon driver collection to be adjusted dynamically

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

 



On 07/12/2013 08:45 AM, Daniel P. Berrange wrote:
> On Thu, Jul 11, 2013 at 07:56:00PM -0400, John Ferlan wrote:
<...snip...>


>> index 5fbd32c..4cbf105 100644
>> --- a/tools/virsh-domain-monitor.c
>> +++ b/tools/virsh-domain-monitor.c
>> @@ -314,6 +314,23 @@ static const vshCmdOptDef opts_dommemstat[] = {
>>       .flags = VSH_OFLAG_REQ,
>>       .help = N_("domain name, id or uuid")
>>      },
>> +    {.name = "period",
>> +     .type = VSH_OT_DATA,
>> +     .flags = VSH_OFLAG_EMPTY_OK,
>> +     .help = N_("period in seconds to set collection")
>> +    },
> 
> Hmm, I think I'd prefer to see the 'period' specified as a flag,
> rather than positional arg. eg
> 
>   virsh dommemstat --period NNN
> 

I've squashed the following:

diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
index 4cbf105..773f96d 100644
--- a/tools/virsh-domain-monitor.c
+++ b/tools/virsh-domain-monitor.c
@@ -316,7 +316,7 @@ static const vshCmdOptDef opts_dommemstat[] = {
     },
     {.name = "period",
      .type = VSH_OT_DATA,
-     .flags = VSH_OFLAG_EMPTY_OK,
+     .flags = VSH_OFLAG_REQ_OPT,
      .help = N_("period in seconds to set collection")
     },
     {.name = "config",

--
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]