1. 17 11月, 2017 1 次提交
  2. 15 11月, 2017 2 次提交
  3. 26 10月, 2017 8 次提交
  4. 06 10月, 2017 4 次提交
  5. 26 9月, 2017 1 次提交
  6. 19 9月, 2017 1 次提交
    • A
      Convert remaining error_report() to warn_report() · 55d527a9
      Alistair Francis 提交于
      In a previous patch (3dc6f869) we
      converted uses of error_report("warning:"... to use warn_report()
      instead. This was to help standardise on a single method of printing
      warnings to the user.
      
      There appears to have been some cases that slipped through in patch sets
      applied around the same time, this patch catches the few remaining
      cases.
      
      All of the warnings were changed using this command:
        find ./* -type f -exec sed -i \
          's|error_report(".*warning[,:] |warn_report("|Ig' {} +
      
      Indentation fixed up manually afterwards.
      
      Two messages were manually fixed up as well.
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Max Reitz <mreitz@redhat.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Acked-by: NCornelia Huck <cohuck@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <eec8cba0d5434bd828639e5e45f12182490ff47d.1505158760.git.alistair.francis@xilinx.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      55d527a9
  7. 06 9月, 2017 1 次提交
  8. 04 9月, 2017 4 次提交
  9. 31 8月, 2017 1 次提交
  10. 30 8月, 2017 1 次提交
  11. 11 8月, 2017 2 次提交
  12. 25 7月, 2017 1 次提交
  13. 24 7月, 2017 1 次提交
    • E
      qcow2: Fix sector calculation in qcow2_measure() · 24bae02b
      Eric Blake 提交于
      We used MAX() instead of the intended MIN() when computing how many
      sectors to view in the current loop iteration of qcow2_measure(),
      and passed in a value of INT_MAX sectors instead of our more usual
      limit of BDRV_REQUEST_MAX_SECTORS (the latter avoids 32-bit overflow
      on conversion to bytes).  For small files, the bug is harmless:
      bdrv_get_block_status_above() clamps its *pnum answer to the BDS
      size, regardless of any insanely larger input request.  However, for
      any file at least 2T in size, we can very easily end up going into an
      infinite loop (the maximum of 0x100000000 sectors and INT_MAX is a
      64-bit quantity, which becomes 0 when assigned to int; once nb_sectors
      is 0, we never make progress).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      24bae02b
  14. 17 7月, 2017 1 次提交
  15. 11 7月, 2017 11 次提交