|
| From: | Alberto Garcia |
| Subject: | Re: [Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function |
| Date: | Thu, 06 Aug 2015 17:10:34 +0200 |
| User-agent: | Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) |
On Mon 27 Jul 2015 05:51:38 PM CEST, Max Reitz wrote:
> + if (refcount_bits <= 0 || refcount_bits > 64 ||
> + !is_power_of_2(refcount_bits))
> + {
> + error_report("Refcount width must be a power of two and may "
> + "not exceed 64 bits");
> + return -EINVAL;
> + }
I guess there's no lower limit needed for this? Doesn't it break
anything if refcount_bits == 1?
Berto
| [Prev in Thread] | Current Thread | [Next in Thread] |