Lines Matching refs:backing_img

32 backing_img = os.path.join(iotests.test_dir, 'backing.img')  variable
81 iotests.create_image(backing_img, self.image_len)
83 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', mid_img)
88 qemu_io('-f', 'raw', '-c', 'write -P 0xab 0 524288', backing_img)
100 os.remove(backing_img)
103 self.run_commit_test(mid_img, backing_img)
106 qemu_io('-f', 'raw', '-c', 'read -P 0xab 0 524288', backing_img)
107 qemu_io('-f', 'raw', '-c', 'read -P 0xef 524288 524288', backing_img)
113 qemu_io('-f', 'raw', '-c', 'read -P 0xab 0 524288', backing_img)
114 qemu_io('-f', 'raw', '-c', 'read -P 0xef 524288 524288', backing_img)
149 …ult = self.vm.qmp('block-commit', device='drive0', top='%s' % backing_img, base='%s' % backing_img)
151 self.assert_qmp(result, 'error/desc', "Can't find '%s' in the backing chain" % backing_img)
155 … result = self.vm.qmp('block-commit', device='drive0', top='badfile', base='%s' % backing_img)
185 ….vm.qmp('block-commit', device='drive0', top_node='mid', base_node='base', base='%s' % backing_img)
190 self.run_commit_test(test_img, backing_img, need_ready=True)
193 qemu_io('-f', 'raw', '-c', 'read -P 0xab 0 524288', backing_img)
194 qemu_io('-f', 'raw', '-c', 'read -P 0xef 524288 524288', backing_img)
200 qemu_io('-f', 'raw', '-c', 'read -P 0xab 0 524288', backing_img)
201 qemu_io('-f', 'raw', '-c', 'read -P 0xef 524288 524288', backing_img)
205 … result = self.vm.qmp('block-commit', device='drive0', top='%s' % backing_img, base='%s' % mid_img)
232 base=backing_img, speed=(self.image_len // 4))
260 base=backing_img, speed=(self.image_len // 4))
269 …lf.assert_qmp(result, 'return[0]/inserted/image/backing-image/backing-image/filename', backing_img)
289 backing_img = "../dir1/backing.img" variable in TestRelativePaths
309 qemu_img('rebase', '-u', '-b', self.backing_img,
332 self.run_commit_test(self.mid_img, self.backing_img)
348 … result = self.vm.qmp('block-commit', device='drive0', top='badfile', base='%s' % self.backing_img)
359 self.run_commit_test(self.test_img, self.backing_img)
365 …result = self.vm.qmp('block-commit', device='drive0', top='%s' % self.backing_img, base='%s' % sel…
374 qemu_img('create', backing_img, str(TestSetSpeed.image_len))
376 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', mid_img)
389 os.remove(backing_img)
445 iotests.create_image(backing_img, self.image_len)
447 '-o', 'backing_file=%s' % backing_img,
465 os.remove(backing_img)
472 filename=backing_img)
664 self.assertFalse(iotests.compare_images(mid_img, backing_img, fmt2='raw'),
675 self.assertTrue(iotests.compare_images(mid_img, backing_img, fmt2='raw'),
687 self.assertTrue(iotests.compare_images(mid_img, backing_img, fmt2='raw'),
698 self.assertFalse(iotests.compare_images(mid_img, backing_img, fmt2='raw'),
709 self.assertTrue(iotests.compare_images(mid_img, backing_img, fmt2='raw'),
721 self.assertTrue(iotests.compare_images(mid_img, backing_img, fmt2='raw'),