[libvirt] [PATCHv3 4/4] openvz: add quota argument when creating container
Eric Blake
eblake at redhat.com
Wed May 23 19:58:30 UTC 2012
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 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/20120523/12a8f8d3/attachment-0001.sig>
More information about the libvir-list
mailing list