Lines Matching refs:drive

53     def __init__(self, name, drive):  argument
55 self.drive = drive
60 return (self.drive['backup'], None)
67 "%s.%s." % (self.drive['id'], self.name))
68 suff = "%i.%s" % (num, self.drive['fmt'])
180 def create_anchor_backup(self, drive=None): argument
181 if drive is None:
182 drive = self.drives[-1]
183 res = self.do_qmp_backup(job_id=drive['id'],
184 device=drive['id'], sync='full',
185 format=drive['fmt'], target=drive['backup'])
187 self.files.append(drive['backup'])
188 return drive['backup']
195 res = self.do_qmp_backup(job_id=bitmap.drive['id'],
196 device=bitmap.drive['id'], sync='full',
197 format=bitmap.drive['fmt'], target=reference)
201 def add_bitmap(self, name, drive, **kwargs): argument
202 bitmap = Bitmap(name, drive)
204 self.vm.cmd('block-dirty-bitmap-add', node=drive['id'],
216 self.img_create(target, bitmap.drive['fmt'], parent=parent,
231 res = self.do_qmp_backup(job_id=bitmap.drive['id'],
232 device=bitmap.drive['id'],
234 format=bitmap.drive['fmt'], target=target,
249 self.assertTrue(iotests.compare_images(last, bitmap.drive['file']))
252 def hmp_io_writes(self, drive, patterns): argument
254 self.vm.hmp_qemu_io(drive, 'write -P%s %s %s' % pattern)
255 self.vm.hmp_qemu_io(drive, 'flush')
355 self.img_create(target, bitmap0.drive['fmt'], cluster_size='128k')
358 self.assertTrue(self.do_qmp_backup(device=bitmap0.drive['id'],
361 format=bitmap0.drive['fmt'],
391 transaction_bitmap_clear(bitmap0.drive['id'], bitmap0.name),
392 transaction_bitmap_clear(bitmap1.drive['id'], bitmap1.name),
707 job_id=bitmap.drive['id'],
708 device=bitmap.drive['id'],
711 format=bitmap.drive['fmt'],
718 match={"data":{"device":bitmap.drive['id']}})
719 self.assert_qmp(event, 'data', {'device': bitmap.drive['id'],
733 self.vm.cmd('block-job-resume', device=bitmap.drive['id'])
734 self.wait_qmp_backup(bitmap.drive['id'])