iotests/257: add EmulatedBitmap class
commit32afa5a1d4f2701a4fe7b67790b856caad22fe0c
authorJohn Snow <jsnow@redhat.com>
Mon, 29 Jul 2019 20:35:54 +0000 (29 16:35 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 16 Aug 2019 20:28:03 +0000 (16 16:28 -0400)
tree56776205aa4a3769d714598a79752e7dfa82383f
parentb0a32bef7bd9f70b1c1dd841934b67d0e9e6f0c0
iotests/257: add EmulatedBitmap class

Represent a bitmap with an object that we can mark and clear bits in.
This makes it easier to manage partial writes when we don't write a
full group's worth of patterns before an error.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190716000117.25219-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/257