Re: [PATCHv3 4/4] openvz: add quota argument when creating container

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

 



On 05/23/2012 09:10 AM, Guido Günther wrote:
> ---
>  src/openvz/openvz_driver.c |   58 +++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 57 insertions(+), 1 deletion(-)
> 
> diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
> index c6d25d7..fb72cde 100644
> --- a/src/openvz/openvz_driver.c
> +++ b/src/openvz/openvz_driver.c
> @@ -189,6 +189,48 @@ cleanup:
>  }
>  

> +        } else if (fss->space_soft_limit) {
> +            openvzError(VIR_ERR_INVALID_ARG, "%s",
> +                        _("Can't set soft limit without hard limit"));
> +            goto cleanup;

This gives a reasonable error message, so I'm okay ack'ing without
change.  Should we maybe consider setting hard_limit = soft_limit
instead of erroring out, or is that too much magic?

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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