1. 26 3月, 2018 4 次提交
  2. 19 3月, 2018 1 次提交
  3. 14 3月, 2018 4 次提交
  4. 09 3月, 2018 2 次提交
  5. 26 1月, 2018 1 次提交
  6. 23 1月, 2018 2 次提交
  7. 19 12月, 2017 2 次提交
  8. 22 11月, 2017 1 次提交
  9. 18 11月, 2017 1 次提交
  10. 17 11月, 2017 1 次提交
  11. 26 10月, 2017 1 次提交
  12. 06 10月, 2017 2 次提交
    • E
      iotests: Add test 197 for covering copy-on-read · 46174339
      Eric Blake 提交于
      Add a test for qcow2 copy-on-read behavior, including exposure
      for the just-fixed bugs.
      
      The copy-on-read behavior is always to a qcow2 image, but the
      test is careful to allow running with most image protocol/format
      combos as the backing file being copied from (luks being the
      exception, as it is harder to pass the right secret to all the
      right places).  In fact, for './check nbd', this appears to be
      the first time we've had a qcow2 image wrapping NBD, requiring
      an additional line in _filter_img_create to match the similar
      line in _filter_img_info.
      
      Invoking blkdebug to prove we don't write too much took some
      effort to get working; and it requires that $TEST_WRAP (based
      on $TEST_DIR) not be subject to word splitting.  We may decide
      later to have the entire iotests suite use relative rather than
      absolute names, to avoid problems inherited by the absolute
      name of $PWD or $TEST_DIR, at which point the sanity check in
      this commit could be simplified.
      
      This test requires at least 2G of consecutive memory to succeed;
      as such, it is prone to spurious failures, particularly on
      32-bit machines under load.  This situation is detected and
      triggers an early exit to skip the test, rather than a failure.
      To manually provoke this setup on a beefier machine, I used:
        $ (ulimit -S -v 1000000; ./check -qcow2 197)
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      46174339
    • K
      7c61a4a3
  13. 26 9月, 2017 2 次提交
  14. 06 9月, 2017 1 次提交
  15. 23 8月, 2017 1 次提交
  16. 15 8月, 2017 1 次提交
  17. 08 8月, 2017 1 次提交
  18. 02 8月, 2017 1 次提交
  19. 24 7月, 2017 1 次提交
  20. 18 7月, 2017 1 次提交
  21. 11 7月, 2017 6 次提交
  22. 26 6月, 2017 1 次提交
  23. 09 6月, 2017 1 次提交
  24. 11 5月, 2017 1 次提交
    • E
      iotests: Add test 179 to cover write zeroes with unmap · e249d519
      Eric Blake 提交于
      No tests were covering write zeroes with unmap.  Additionally,
      I needed to prove that my previous patches for correct status
      reporting and write zeroes optimizations actually had an impact.
      
      The test works for cluster_size between 8k and 2M (for smaller
      sizes, it fails because our allocation patterns are not contiguous
      with small clusters - in part, the largest consecutive allocation
      we tend to get is often bounded by the size covered by one L2
      table).
      
      Note that testing for zero clusters is tricky: 'qemu-io map'
      reports whether data comes from the current layer of the image
      (useful for sniffing out which regions of the file have
      QCOW_OFLAG_ZERO) - but doesn't show which clusters have mappings;
      while 'qemu-img map' sees "zero":true for both unallocated and
      zero clusters for any qcow2 with no backing layer (so less useful
      at detecting true zero clusters), but reliably shows mappings.
      So we have to rely on both queries side-by-side at each point of
      the test.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 20170507000552.20847-10-eblake@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      e249d519