1. 10 12月, 2014 4 次提交
  2. 03 11月, 2014 5 次提交
  3. 23 10月, 2014 3 次提交
  4. 20 10月, 2014 1 次提交
  5. 05 10月, 2014 1 次提交
  6. 22 9月, 2014 3 次提交
  7. 12 9月, 2014 4 次提交
  8. 20 8月, 2014 2 次提交
  9. 15 8月, 2014 3 次提交
  10. 18 7月, 2014 2 次提交
  11. 14 7月, 2014 1 次提交
  12. 26 6月, 2014 1 次提交
  13. 16 6月, 2014 3 次提交
  14. 30 5月, 2014 1 次提交
  15. 30 4月, 2014 1 次提交
  16. 04 4月, 2014 1 次提交
    • K
      qcow2: Flush metadata during read-only reopen · 4c2e5f8f
      Kevin Wolf 提交于
      If lazy refcounts are enabled for a backing file, committing to this
      backing file may leave it in a dirty state even if the commit succeeds.
      The reason is that the bdrv_flush() call in bdrv_commit() doesn't flush
      refcount updates with lazy refcounts enabled, and qcow2_reopen_prepare()
      doesn't take care to flush metadata.
      
      In order to fix this, this patch also fixes qcow2_mark_clean(), which
      contains another ineffective bdrv_flush() call beause lazy refcounts are
      disabled only afterwards. All existing callers of qcow2_mark_clean()
      either don't modify refcounts or already flush manually, so that this
      fixes only a latent, but not yet actually triggerable bug.
      
      Another instance of the same problem is live snapshots. Again, a real
      corruption is prevented by an explicit flush for non-read-only images in
      external_snapshot_prepare(), but images using lazy refcounts stay dirty.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      4c2e5f8f
  17. 01 4月, 2014 4 次提交