Re: [PATCH 2/4] testNodeGetCellsFreeMemory: Fix off by one error

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

 




On 10/05/2016 03:30 AM, Michal Privoznik wrote:
> Consider the following scenario:
> 
>   virsh # freecell --all
>       0:       2048 KiB
>       1:       4096 KiB
>   --------------------
>   Total:       6144 KiB
> 
>   virsh # freecell 0
>   0: 2048 KiB
> 
>   virsh # freecell 1
>   1: 4096 KiB
> 
> And now before this change:
> 
>   virsh # freecell 2
> 
> After this change:
> 
>   virsh # freecell 2
>   error: invalid argument: Range exceeds available cells
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/test/test_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

ACK

John

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