Merge "Use default qemu-img cluster size in libvirt connection driver"

This commit is contained in:
Jenkins 2012-05-11 21:49:00 +00:00 committed by Gerrit Code Review
commit a07fddf525
3 changed files with 3 additions and 2 deletions

View File

@ -88,6 +88,7 @@ Jason Koelker <jason@koelker.net>
Jay Pipes <jaypipes@gmail.com>
JC Martin <jcmartin@ebaysf.com>
Jesse Andrews <anotherjesse@gmail.com>
Jim Fehlig <jfehlig@suse.com>
Jimmy Bergman <jimmy@sigint.se>
Joe Gordon <jogo@cloudscaling.com>
Joe Heck <heckj@mac.com>

View File

@ -2203,7 +2203,7 @@ class LibvirtUtilsTestCase(test.TestCase):
def test_create_cow_image(self):
self.mox.StubOutWithMock(utils, 'execute')
utils.execute('qemu-img', 'create', '-f', 'qcow2',
'-o', 'cluster_size=2M,backing_file=/some/path',
'-o', 'backing_file=/some/path',
'/the/new/cow')
# Start test
self.mox.ReplayAll()

View File

@ -87,7 +87,7 @@ def create_cow_image(backing_file, path):
:param path: Desired location of the COW image
"""
execute('qemu-img', 'create', '-f', 'qcow2', '-o',
'cluster_size=2M,backing_file=%s' % backing_file, path)
'backing_file=%s' % backing_file, path)
def get_disk_size(path):