1. 22 8月, 2014 1 次提交
    • M
      qemu-img: Allow source cache mode specification · 40055951
      Max Reitz 提交于
      Many qemu-img subcommands only read the source file(s) once. For these
      use cases, a full write-back cache is unnecessary and mainly clutters
      host cache memory. Though this is generally no concern as cache memory
      is freely available and can be scaled by the host OS, it may become a
      concern with thin provisioning.
      
      For these cases, it makes sense to allow users to freely specify the
      source cache mode (e.g. use no cache at all).
      
      This commit adds a new switch (-T) for the qemu-img subcommands check,
      compare, convert and rebase to specify the cache to be used for source
      images (the backing file in case of rebase).
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      40055951
  2. 15 8月, 2014 3 次提交
  3. 09 8月, 2014 1 次提交
  4. 18 7月, 2014 1 次提交
  5. 16 6月, 2014 2 次提交
  6. 04 6月, 2014 1 次提交
  7. 02 6月, 2014 1 次提交
  8. 30 5月, 2014 2 次提交
  9. 19 5月, 2014 1 次提交
  10. 09 5月, 2014 2 次提交
  11. 29 4月, 2014 1 次提交
  12. 28 4月, 2014 1 次提交
  13. 26 4月, 2014 1 次提交
  14. 22 4月, 2014 3 次提交
    • F
      qemu-img: Improve error messages · ac1307ab
      Fam Zheng 提交于
      Previously, when there is a user error in argv parsing, qemu-img prints
      help text and exits.
      
      Add an error_exit function to print a helpful error message and a hint
      to run 'qemu-img --help' for more information.
      
      As a bonus, "qemu-img <cmd> --help" now has a more reasonable exit code
      0.
      
      In the future the help text should be split by sub command, and only
      print the information for the specified command.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      ac1307ab
    • K
      qemu-img: Avoid duplicate block device IDs · 9ffe3332
      Kevin Wolf 提交于
      qemu-img used to use "image" as ID for all block devices. This means
      that e.g. img_convert() ended up with potentially multiple source images
      and one target image, all with the same ID. The next patch will catch
      this and fail to open the block device.
      
      This patch makes sure that qemu-img uses meaningful unique IDs for the
      block devices it uses.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      9ffe3332
    • K
      block: Add errp to bdrv_new() · 98522f63
      Kevin Wolf 提交于
      This patch adds an errp parameter to bdrv_new() and updates all its
      callers. The next patches will make use of this in order to check for
      duplicate IDs. Most of the callers know that their ID is fine, so they
      can simply assert that there is no error.
      
      Behaviour doesn't change with this patch yet as bdrv_new() doesn't
      actually assign errors to errp.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      98522f63
  15. 01 4月, 2014 1 次提交
  16. 25 3月, 2014 1 次提交
  17. 05 3月, 2014 1 次提交
  18. 03 3月, 2014 1 次提交
  19. 22 2月, 2014 6 次提交
  20. 20 2月, 2014 1 次提交
  21. 18 2月, 2014 1 次提交
  22. 07 1月, 2014 1 次提交
  23. 13 12月, 2013 1 次提交
  24. 06 12月, 2013 2 次提交
  25. 05 12月, 2013 3 次提交