qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v2 0/3] block: Warn about usage of growing formats o


From: Max Reitz
Subject: [Qemu-block] [PATCH v2 0/3] block: Warn about usage of growing formats over non-growable protocols
Date: Thu, 19 Mar 2015 15:03:18 -0400

Some image formats (e.g. qcow2) require the underlying file to grow on
write accesses, but this is in fact not supported by all protocols (e.g.
nbd does not). If such a format requiring file growth is used
non-read-only over a protocol which does not support this, a warning
should be issued.

This warning is issued for example whenever one tries to export a qcow2
image over nbd-server and use the export from qemu.


This series depends on v2 of my series
"block: driver should override flags in bdrv_open()".


v2: Reworked because BDS.growable has been removed in the meantime, so
    this version does not need to reuse it and thus break its intended
    use.


Max Reitz (3):
  iotests: Make nested read in 072 and 089 read-only
  block: Introduce BDS.growing
  block: Introduce BlockDriver.requires_growing_file

 block.c                   | 20 ++++++++++++++++++++
 block/blkdebug.c          |  2 ++
 block/blkverify.c         |  2 ++
 block/iscsi.c             |  2 ++
 block/nbd.c               |  2 ++
 block/qcow.c              |  1 +
 block/qcow2.c             |  7 +++++++
 block/qed.c               |  1 +
 block/quorum.c            |  5 +++++
 block/raw_bsd.c           |  1 +
 block/vdi.c               |  2 ++
 block/vhdx.c              |  2 ++
 block/vmdk.c              |  1 +
 block/vpc.c               |  2 ++
 include/block/block_int.h |  7 +++++++
 tests/qemu-iotests/072    |  2 +-
 tests/qemu-iotests/089    |  2 +-
 17 files changed, 59 insertions(+), 2 deletions(-)

-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]