1. 13 1月, 2016 1 次提交
    • M
      error: Use error_prepend() where it makes obvious sense · e43bfd9c
      Markus Armbruster 提交于
      Done with this Coccinelle semantic patch
      
          @@
          expression FMT, E1, E2;
          expression list ARGS;
          @@
          -    error_setg(E1, FMT, ARGS, error_get_pretty(E2));
          +    error_propagate(E1, E2);/*###*/
          +    error_prepend(E1, FMT/*@@@*/, ARGS);
      
      followed by manual cleanup, first because I can't figure out how to
      make Coccinelle transform strings, and second to get rid of now
      superfluous error_propagate().
      
      We now use or propagate the original error whole instead of just its
      message obtained with error_get_pretty().  This avoids suppressing its
      hint (see commit 50b7b000), but I can't see how the errors touched in
      this commit could come with hints.  It also improves the message
      printed with &error_abort when we screw up (see commit 1e9b65bb).
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      e43bfd9c
  2. 12 11月, 2015 1 次提交
  3. 16 10月, 2015 3 次提交
  4. 14 9月, 2015 1 次提交
  5. 23 6月, 2015 1 次提交
  6. 28 4月, 2015 2 次提交
  7. 07 2月, 2015 1 次提交
  8. 20 10月, 2014 3 次提交
  9. 22 9月, 2014 2 次提交
  10. 12 9月, 2014 1 次提交
  11. 15 8月, 2014 1 次提交
  12. 18 7月, 2014 1 次提交
  13. 14 7月, 2014 1 次提交
  14. 01 7月, 2014 1 次提交
    • C
      qemu-img create: add 'nocow' option · 4ab15590
      Chunyan Liu 提交于
      Add 'nocow' option so that users could have a chance to set NOCOW flag to
      newly created files. It's useful on btrfs file system to enhance performance.
      
      Btrfs has low performance when hosting VM images, even more when the guest
      in those VM are also using btrfs as file system. One way to mitigate this bad
      performance is to turn off COW attributes on VM files. Generally, there are
      two ways to turn off NOCOW on btrfs: a) by mounting fs with nodatacow, then
      all newly created files will be NOCOW. b) per file. Add the NOCOW file
      attribute. It could only be done to empty or new files.
      
      This patch tries the second way, according to the option, it could add NOCOW
      per file.
      
      For most block drivers, since the create file step is in raw-posix.c, so we
      can do setting NOCOW flag ioctl in raw-posix.c only.
      
      But there are some exceptions, like block/vpc.c and block/vdi.c, they are
      creating file by calling qemu_open directly. For them, do the same setting
      NOCOW flag ioctl work in them separately.
      
      [Fixed up 082.out due to the new 'nocow' creation option
      --Stefan]
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      4ab15590
  15. 26 6月, 2014 1 次提交
  16. 16 6月, 2014 3 次提交
  17. 04 6月, 2014 1 次提交
    • S
      qed: use BlockDriverState's AioContext · a8c868c3
      Stefan Hajnoczi 提交于
      Drop the assumption that we're using the main AioContext.  Convert
      qemu_bh_new() to aio_bh_new() and qemu_aio_wait() to aio_poll() so we're
      using the BlockDriverState's AioContext.
      
      Implement .bdrv_detach/attach_aio_context() interfaces to move the
      QED_F_NEED_CHECK timer from the old AioContext to the new one.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      a8c868c3
  18. 22 4月, 2014 1 次提交
  19. 19 3月, 2014 1 次提交
  20. 13 3月, 2014 1 次提交
    • K
      block: Update image size in bdrv_invalidate_cache() · 3456a8d1
      Kevin Wolf 提交于
      After migration has completed, we call bdrv_invalidate_cache() so that
      drivers which cache some data drop their stale copy of the data and
      reread it from the image file to get a new version of data that the
      source modified while the migration was running.
      
      Reloading metadata from the image file is useless, though, if the size
      of the image file stays stale (this is a value that is cached for all
      image formats in block.c). Reads from (meta)data after the old EOF
      return only zeroes, causing image corruption.
      
      We need to update bs->total_sectors in all layers that could potentially
      have changed their size (i.e. backing files are not a concern - if they
      are changed, we're in bigger trouble)
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      3456a8d1
  21. 22 2月, 2014 3 次提交
  22. 01 2月, 2014 1 次提交
  23. 25 1月, 2014 1 次提交
  24. 22 1月, 2014 1 次提交
  25. 03 12月, 2013 2 次提交
  26. 28 11月, 2013 1 次提交
  27. 12 9月, 2013 3 次提交