1. 08 6月, 2011 1 次提交
    • K
      qemu-img create: Fix displayed default cluster size · 99cce9fa
      Kevin Wolf 提交于
      When not specifying a cluster size on the command line, qemu-img printed
      a cluster size of 0:
      
          Formatting '/tmp/test.qcow2', fmt=qcow2 size=67108864
          encryption=off cluster_size=0
      
      This patch adds the default cluster size to the QEMUOptionParameter list, so
      that it displays the default value that is used.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      99cce9fa
  2. 18 5月, 2011 2 次提交
    • S
      qed: support for growing images · 77a5a000
      Stefan Hajnoczi 提交于
      The .bdrv_truncate() operation resizes images and growing is easy to
      implement in QED.  Simply check that the new size is valid and then
      update the image_size header field to reflect the new size.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      77a5a000
    • S
      qed: Periodically flush and clear need check bit · 6f321e93
      Stefan Hajnoczi 提交于
      One strategy to limit the startup delay of consistency check when
      opening image files is to ensure that the file is marked dirty for as
      little time as possible.
      
      QED currently marks the image dirty when the first allocating write
      request is issued and clears the dirty bit again when the image is
      cleanly closed.  In practice that means the image is marked dirty for
      most of a guest's lifetime and prone to being in a dirty state upon
      crash or power failure.
      
      It is safe to clear the dirty bit after all allocating write requests
      have completed and a flush has been performed.  This patch adds a timer
      after the last allocating write request completes.  When the timer fires
      it will flush and then clear the dirty bit.  The timer is set to 5
      seconds and is cancelled upon arrival of a new allocating write request.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6f321e93
  3. 13 4月, 2011 1 次提交
  4. 10 2月, 2011 1 次提交
  5. 31 1月, 2011 1 次提交
  6. 24 1月, 2011 1 次提交
  7. 17 12月, 2010 4 次提交