Am 28.08.2013 um 13:47 hat Max Reitz geschrieben: > Am 28.08.2013 13:40, schrieb Kevin Wolf: > >Am 28.08.2013 um 10:08 hat Max Reitz geschrieben: > >>Add tests for qemu-img amend on qcow2 image files. > >> > >>Signed-off-by: Max Reitz <mre...@redhat.com> > >>--- > >>This test is numbered 061 for not interfering with my "metadata overlap > >>checks" series (although I will have to adapt my code to those new checks > >>anyway when/if they are included in master). > >>--- > >> tests/qemu-iotests/061 | 121 +++++++++++++++++++ > >> tests/qemu-iotests/061.out | 289 > >> +++++++++++++++++++++++++++++++++++++++++++++ > >> tests/qemu-iotests/group | 1 + > >> 3 files changed, 411 insertions(+) > >> create mode 100755 tests/qemu-iotests/061 > >> create mode 100644 tests/qemu-iotests/061.out > >The existing cases look good. I would add some _check_test_img calls > >after each amendment, and perhaps include a few cases with non-standard > >cluster_size etc. during image creation (which would show that your TODO > >isn't addressed yet). > > > >Kevin > > > Ah, right, because it won't be 0 but DEFAULT_CLUSTER_SIZE then… Hm. > So, generally, right now I can just check whether the value differs > and is not DEFAULT_CLUSTER_SIZE (which would obviously silently > ignore the flag when cluster_size=$DEFAULT_CLUSTER_SIZE was given)?
I think the TODO needs to be addressed before the series can be merged, so discussing what you could do or not right now is moot. Kevin