]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: allow zero capacity with non-backing file to be created
authorChris J Arges <chris.j.arges@canonical.com>
Tue, 30 Jun 2015 20:19:03 +0000 (15:19 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 24 Jul 2015 15:22:20 +0000 (11:22 -0400)
commitc6eea5400822ca191949aabda19fcf69d29b40e2
tree250848c3d420ef04387248db6b3607d0965b4d20
parent136f17efd123593abed4d7d7a18e147bbf534527
storage: allow zero capacity with non-backing file to be created

In commit 155ca616e, a change was introduced that no longer allowed defining
volumes via XML with a capacity of '0'. Because we check for info.size_arg
to be non-zero, this use-case fails. This patch allows info.size_arg to be
zero if no backing store is specified.

Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
src/storage/storage_backend.c