1. 26 4月, 2014 1 次提交
  2. 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
  3. 01 4月, 2014 1 次提交
  4. 25 3月, 2014 1 次提交
  5. 05 3月, 2014 1 次提交
  6. 03 3月, 2014 1 次提交
  7. 22 2月, 2014 6 次提交
  8. 20 2月, 2014 1 次提交
  9. 18 2月, 2014 1 次提交
  10. 07 1月, 2014 1 次提交
  11. 13 12月, 2013 1 次提交
  12. 06 12月, 2013 2 次提交
  13. 05 12月, 2013 3 次提交
  14. 04 12月, 2013 2 次提交
  15. 28 11月, 2013 2 次提交
  16. 15 11月, 2013 1 次提交
  17. 24 10月, 2013 1 次提交
  18. 12 9月, 2013 6 次提交
  19. 06 9月, 2013 5 次提交