Block layer fixes for 2.9.0-rc1
The following changes since commit dd4d2578215cd380f40a38028a9904e15b135ef3:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170309-1' into staging (2017-03-09 13:16:05 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.git tags/for-upstream
for you to fetch changes up to dcbf37ce41a52698550f8f8b2f14b5e6fee22d2d:
commit: Implement .bdrv_refresh_filename (2017-03-13 12:49:33 +0100)
----------------------------------------------------------------
Block layer fixes for 2.9.0-rc1
----------------------------------------------------------------
Eric Blake (4):
block: Drop unmaintained 'archipelago' driver
backup: React to bdrv_is_allocated() errors
vvfat: React to bdrv_is_allocated() errors
migration: Document handling of bdrv_is_allocated() errors
Fam Zheng (1):
file-posix: Consider max_segments for BlockLimits.max_transfer
Kevin Wolf (6):
block: Remove check_new_perm from bdrv_replace_child()
block: Request block status from *file for BDRV_BLOCK_RAW
commit: Implement bdrv_commit_top.bdrv_co_get_block_status
block: Refresh filename after changing backing file
mirror: Implement .bdrv_refresh_filename
commit: Implement .bdrv_refresh_filename
Vladimir Sementsov-Ogievskiy (1):
backup: allow target without .bdrv_get_info
MAINTAINERS | 8 - block.c | 23 +- block/Makefile.objs | 2 - block/archipelago.c | 1079 -------------------------------------- block/backup.c | 26 +- block/commit.c | 28 +- block/file-posix.c | 47 ++ block/io.c | 2 +- block/mirror.c | 9 + block/vvfat.c | 22 +- configure | 43 -- migration/block.c | 2 + qapi/block-core.json | 33 +- tests/qemu-iotests/025 | 2 +- tests/qemu-iotests/common | 6 - tests/qemu-iotests/common.filter | 4 +- tests/qemu-iotests/common.rc | 8 - 17 files changed, 143 insertions(+), 1201 deletions(-) delete mode 100644 block/archipelago.c
[Qemu-devel] [PULL 01/12] backup: allow target without .bdrv_get_info
From: Vladimir Sementsov-Ogievskiy <[email protected]>
Currently backup to nbd target is broken, as nbd doesn't have .bdrv_get_info realization.
--- block/backup.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
block/backup.c +11 -1
@@ -24,6 +24,7 @@#include "qemu/cutils.h" #include "sysemu/block-backend.h" #include "qemu/bitmap.h" +#include "qemu/error-report.h" #define BACKUP_CLUSTER_SIZE_DEFAULT (1 << 16)#define SLICE_TIME 100000000ULL/* ns */
@@ -648,7 +649,16 @@ BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs,* backup cluster size is smaller than the target cluster size. Even for * targets with a backing file, try to avoid COW if possible. */ ret =bdrv_get_info (target, &bdi); -if (ret <0 && !target->backing) { +if (ret == -ENOTSUP && !target->backing) { +/* Cluster size is not defined */ +error_report ("WARNING: The target block device doesn't provide " +"information about the block size and it doesn't have a " +"backing file. The default block size of %u bytes is " +"used. If the actual block size of the target exceeds " +"this default, the backup may be unusable" , +BACKUP_CLUSTER_SIZE_DEFAULT ); + job->cluster_size =BACKUP_CLUSTER_SIZE_DEFAULT ; + }else if (ret <0 && !target->backing) {error_setg_errno (errp, -ret,"Couldn't determine the cluster size of the target image, " "which has no backing file" );
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 02/12] file-posix: Consider max_segments for BlockLimits.max_transfer
In reply to Kevin WolfFrom: Fam Zheng <[email protected]>
BlockLimits.max_transfer can be too high without this fix, guest will encounter I/O error or even get paused with werror=stop or rerror=stop. The cause is explained below.
Linux has a separate limit, /sys/block/.../queue/max_segments, which in the worst case can be more restrictive than the BLKSECTGET which we already consider (note that they are two different things). So, the failure scenario before this patch is:
1) host device has max_sectors_kb = 4096 and max_segments = 64;
2) guest learns max_sectors_kb limit from QEMU, but doesn't know max_segments;
3) guest issues e.g. a 512KB request thinking it's okay, but actually it's not, because it will be passed through to host device as an SG_IO req that has niov > 64;
4) host kernel doesn't like the segmenting of the request, and returns -EINVAL;
This patch checks the max_segments sysfs entry for the host device and calculates a "conservative" bytes limit using the page size, which is then merged into the existing max_transfer limit. Guest will discover this from the usual virtual block device interfaces. (In the case of scsi-generic, it will be done in the INQUIRY reply interception in device model.)
The other possibility is to actually propagate it as a separate limit, but it's not better. On the one hand, there is a big complication: the limit is per-LUN in QEMU PoV (because we can attach LUNs from different host HBAs to the same virtio-scsi bus), but the channel to communicate it in a per-LUN manner is missing down the stack; on the other hand, two limits versus one doesn't change much about the valid size of I/O (because guest has no control over host segmenting).
Also, the idea to fall back to bounce buffering in QEMU, upon -EINVAL, was explored. Unfortunately there is no neat way to ensure the bounce buffer is less segmented (in terms of DMA addr) than the guest buffer.
Practically, this bug is not very common. It is only reported on a Emulex (lpfc), so it's okay to get it fixed in the easier way.
--- block/file-posix.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)
block/file-posix.c +47 -0
@@ -668,6 +668,48 @@ static int hdev_get_max_transfer_length(BlockDriverState *bs, int fd)#endif } +static int hdev_get_max_segments (const struct stat *st) +{ +#ifdef CONFIG_LINUX +char buf[32 ]; +const char *end; +char *sysfspath; +int ret; +int fd =-1 ; +long max_segments; + + sysfspath =g_strdup_printf ("/sys/dev/block/%u:%u/queue/max_segments" , +major (st->st_rdev),minor (st->st_rdev)); + fd =open (sysfspath,O_RDONLY ); +if (fd ==-1 ) { + ret = -errno; + goto out; + } +do { + ret =read (fd, buf,sizeof (buf)); + }while (ret ==-1 && errno ==EINTR ); +if (ret <0 ) { + ret = -errno; + goto out; + }else if (ret ==0 ) { + ret = -EIO ; + goto out; + } + buf[ret] =0 ; +/* The file is ended with '\n', pass 'end' to accept that. */ + ret =qemu_strtol (buf, &end,10 , &max_segments); +if (ret ==0 && end && *end =='\n' ) { + ret = max_segments; + } + +out: +g_free (sysfspath); +return ret; +#else +return -ENOTSUP ; +#endif +} +static void raw_refresh_limits (BlockDriverState *bs,Error **errp) {BDRVRawState *s = bs->opaque;
@@ -679,6 +721,11 @@ static void raw_refresh_limits(BlockDriverState *bs, Error **errp)if (ret >0 && ret <=BDRV_REQUEST_MAX_BYTES ) { bs->bl.max_transfer =pow2floor (ret); } + ret =hdev_get_max_segments (&st); +if (ret >0 ) { + bs->bl.max_transfer =MIN (bs->bl.max_transfer, + ret *getpagesize ()); + } } }
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 04/12] backup: React to bdrv_is_allocated() errors
In reply to Kevin WolfFrom: Eric Blake <[email protected]>
If bdrv_is_allocated() fails, we should immediately do the backup error action, rather than attempting backup_do_cow() (although that will likely fail too).
--- block/backup.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
block/backup.c +10 -4
@@ -468,13 +468,14 @@ static void coroutine_fn backup_run(void *opaque)/* Both FULL and TOP SYNC_MODE's require copying.. */ for (; start < end; start++) {bool error_is_read; +int alloced =0 ; +if (yield_and_check (job)) {break ; }if (job->sync_mode ==MIRROR_SYNC_MODE_TOP ) {int i, n; -int alloced =0 ;/* Check to see if these blocks are already in the * backing file. */
@@ -492,7 +493,7 @@ static void coroutine_fn backup_run(void *opaque) sectors_per_cluster - i, &n); i += n; -if (alloced ==1 || n ==0 ) { +if (alloced || n ==0 ) {break ; } }
@@ -504,8 +505,13 @@ static void coroutine_fn backup_run(void *opaque) } }/* FULL sync mode we copy the whole drive. */ - ret =backup_do_cow (job, start * sectors_per_cluster, - sectors_per_cluster, &error_is_read, false); +if (alloced <0 ) { + ret = alloced; + }else { + ret =backup_do_cow (job, start * sectors_per_cluster, + sectors_per_cluster, &error_is_read, + false); + }if (ret <0 ) {/* Depending on error action, fail now or retry cluster */ BlockErrorAction action =
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 05/12] vvfat: React to bdrv_is_allocated() errors
In reply to Kevin WolfFrom: Eric Blake <[email protected]>
If bdrv_is_allocated() fails, we should react to that failure. For 2 of the 3 callers, reporting the error was easy. But in cluster_was_modified() and its lone caller get_cluster_count_for_direntry(), it's rather invasive to update the logic to pass the error back; so there, I went with merely documenting the issue by changing the return type to bool (in all likelihood, treating the cluster as modified will then trigger a read which will also fail, and eventually get to an error - but given the appalling number of abort() calls in this code, I'm not making it any worse).
--- block/vvfat.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
block/vvfat.c +19 -3
@@ -1394,7 +1394,13 @@ static int vvfat_read(BlockDriverState *bs, int64_t sector_num,return -1 ;if (s->qcow) {int n; -if (bdrv_is_allocated (s->qcow->bs, sector_num, nb_sectors-i, &n)) { +int ret; + ret =bdrv_is_allocated (s->qcow->bs, sector_num, + nb_sectors - i, &n); +if (ret <0 ) { +return ret; + } +if (ret) {DLOG (fprintf (stderr,"sectors %d+%d allocated\n" , (int )sector_num, n));if (bdrv_read (s->qcow, sector_num, buf + i *0x200 , n)) {
@@ -1668,7 +1674,8 @@ static inline uint32_t modified_fat_get(BDRVVVFATState* s, } } -static inline int cluster_was_modified (BDRVVVFATState * s,uint32_t cluster_num) +static inline bool cluster_was_modified (BDRVVVFATState *s, +uint32_t cluster_num) {int was_modified =0 ;int i, dummy;
@@ -1683,7 +1690,13 @@ static inline int cluster_was_modified(BDRVVVFATState* s, uint32_t cluster_num) 1, &dummy); } -return was_modified; +/* +* Note that this treats failures to learn allocation status the +* same as if an allocation has occurred. It's as safe as +* anything else, given that a failure to learn allocation status +* will probably result in more failures. +*/ +return !!was_modified; }static const char *get_basename (const char * path)
@@ -1833,6 +1846,9 @@ static uint32_t get_cluster_count_for_direntry(BDRVVVFATState* s,int res; res =bdrv_is_allocated (s->qcow->bs, offset + i,1 , &dummy); +if (res <0 ) { +return -1 ; + }if (!res) { res =vvfat_read (s->bs, offset, s->cluster_buffer,1 );if (res) {
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 06/12] migration: Document handling of bdrv_is_allocated() errors
In reply to Kevin WolfFrom: Eric Blake <[email protected]>
Migration is the only code left in the tree that does not react to bdrv_is_allocated() failures. But as there is no useful way to react to the failure, and we are merely skipping unallocated sectors on success, just document that our choice of handling is intended.
--- migration/block.c | 2 ++ 1 file changed, 2 insertions(+)
migration/block.c +2 -0
@@ -276,6 +276,8 @@ static int mig_save_device_bulk(QEMUFile *f, BlkMigDevState *bmds)if (bmds->shared_base) {qemu_mutex_lock_iothread ();aio_context_acquire (blk_get_aio_context (bb)); +/* Skip unallocated sectors; intentionally treats failure as +* an allocated sector */ while (cur_sector < total_sectors && !bdrv_is_allocated (blk_bs (bb), cur_sector,MAX_IS_ALLOCATED_SEARCH , &nr_sectors)) {
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 07/12] block: Remove check_new_perm from bdrv_replace_child()
In reply to Kevin WolfAll callers pass false now, so the parameter can go away again.
--- block.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)
block.c +14 -7
@@ -1756,8 +1756,18 @@ static void bdrv_replace_child_noperm(BdrvChild *child, } } -static void bdrv_replace_child (BdrvChild *child,BlockDriverState *new_bs, -bool check_new_perm) +/* +* Updates @child to change its reference to point to @new_bs, including +* checking and applying the necessary permisson updates both to the old node +* and to @new_bs. +* +* NULL is passed as @new_bs for removing the reference before freeing @child. +* +* If @new_bs is not NULL, bdrv_check_perm() must be called beforehand, as this +* function uses bdrv_set_perm() to update the permissions according to the new +* reference that @new_bs gets. +*/ +static void bdrv_replace_child (BdrvChild *child,BlockDriverState *new_bs) {BlockDriverState *old_bs = child->bs;uint64_t perm, shared_perm;
@@ -1775,9 +1785,6 @@ static void bdrv_replace_child(BdrvChild *child, BlockDriverState *new_bs,if (new_bs) {bdrv_get_cumulative_perm (new_bs, &perm, &shared_perm); -if (check_new_perm) { -bdrv_check_perm (new_bs, perm, shared_perm,NULL , &error_abort); - }bdrv_set_perm (new_bs, perm, shared_perm); } }
@@ -1808,7 +1815,7 @@ BdrvChild *bdrv_root_attach_child(BlockDriverState *child_bs, };/* This performs the matching bdrv_set_perm() for the above check. */ -bdrv_replace_child (child, child_bs, false); +bdrv_replace_child (child, child_bs);return child; }
@@ -1845,7 +1852,7 @@ static void bdrv_detach_child(BdrvChild *child) child->next.le_prev =NULL ; } -bdrv_replace_child (child,NULL , false); +bdrv_replace_child (child,NULL );g_free (child->name);g_free (child);
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 10/12] block: Refresh filename after changing backing file
In reply to Kevin WolfIn bdrv_open_inherit(), the filename is refreshed after opening the backing file, but we neglected to do the same when the backing file changes later.
--- block.c | 2 ++ 1 file changed, 2 insertions(+)
block.c +2 -0
@@ -1938,6 +1938,8 @@ void bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd,bdrv_unref (backing_hd); } +bdrv_refresh_filename (bs); + out:bdrv_refresh_limits (bs,NULL ); }
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 08/12] block: Request block status from *file for BDRV_BLOCK_RAW
In reply to Kevin WolfThis fixes bdrv_co_get_block_status() for the bdrv_mirror_top block driver, which must fall through to bs->backing instead of bs->file.
--- block/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/io.c +1 -1
@@ -1760,7 +1760,7 @@ static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,if (ret &BDRV_BLOCK_RAW ) {assert (ret &BDRV_BLOCK_OFFSET_VALID ); - ret =bdrv_get_block_status (bs->file->bs, ret >>BDRV_SECTOR_BITS , + ret =bdrv_get_block_status (*file, ret >>BDRV_SECTOR_BITS , *pnum, pnum, file); goto out; }
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 11/12] mirror: Implement .bdrv_refresh_filename
In reply to Kevin WolfWe want query-block to return the right filename, even if a mirror job put a bdrv_mirror_top on top of the actual image format driver. Let bdrv_mirror_top.bdrv_refresh_filename get the filename from its backing file.
--- block/mirror.c | 9 +++++++++ 1 file changed, 9 insertions(+)
block/mirror.c +9 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu/cutils.h" #include "trace.h" #include "block/blockjob_int.h" #include "block/block_int.h"
@@ -1060,6 +1061,13 @@ static int coroutine_fn bdrv_mirror_top_pdiscard(BlockDriverState *bs,return bdrv_co_pdiscard (bs->backing->bs, offset, count); } +static void bdrv_mirror_top_refresh_filename (BlockDriverState *bs,QDict *opts) +{ +bdrv_refresh_filename (bs->backing->bs); +pstrcpy (bs->exact_filename,sizeof (bs->exact_filename), + bs->backing->bs->filename); +} +static void bdrv_mirror_top_close (BlockDriverState *bs) { }
@@ -1088,6 +1096,7 @@ static BlockDriver bdrv_mirror_top = { .bdrv_co_pdiscard = bdrv_mirror_top_pdiscard, .bdrv_co_flush = bdrv_mirror_top_flush, .bdrv_co_get_block_status = bdrv_mirror_top_get_block_status, + .bdrv_refresh_filename = bdrv_mirror_top_refresh_filename, .bdrv_close = bdrv_mirror_top_close, .bdrv_child_perm = bdrv_mirror_top_child_perm, };
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 09/12] commit: Implement bdrv_commit_top.bdrv_co_get_block_status
In reply to Kevin WolfIn some cases, bdrv_co_get_block_status() is called recursively for the whole backing chain. The automatically inserted bdrv_commit_top filter driver must not stop the recursion, so implement a callback that simply forwards the request to bs->backing.
--- block/commit.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
block/commit.c +16 -4
@@ -232,6 +232,17 @@ static int coroutine_fn bdrv_commit_top_preadv(BlockDriverState *bs,return bdrv_co_preadv (bs->backing, offset, bytes, qiov, flags); } +static int64_t coroutine_fn bdrv_commit_top_get_block_status( +BlockDriverState *bs,int64_t sector_num,int nb_sectors,int *pnum, +BlockDriverState **file) +{ + *pnum = nb_sectors; + *file = bs->backing->bs; +return BDRV_BLOCK_RAW |BDRV_BLOCK_OFFSET_VALID |BDRV_BLOCK_DATA | + (sector_num <<BDRV_SECTOR_BITS ); +} + +static void bdrv_commit_top_close (BlockDriverState *bs) { }
@@ -248,10 +259,11 @@ static void bdrv_commit_top_child_perm(BlockDriverState *bs, BdrvChild *c,/* Dummy node that provides consistent read to its users without requiring it * from its backing file and that allows writes on the backing file chain. */ static BlockDriver bdrv_commit_top = { - .format_name ="commit_top" , - .bdrv_co_preadv = bdrv_commit_top_preadv, - .bdrv_close = bdrv_commit_top_close, - .bdrv_child_perm = bdrv_commit_top_child_perm, + .format_name ="commit_top" , + .bdrv_co_preadv = bdrv_commit_top_preadv, + .bdrv_co_get_block_status = bdrv_commit_top_get_block_status, + .bdrv_close = bdrv_commit_top_close, + .bdrv_child_perm = bdrv_commit_top_child_perm, }; void commit_start(const char *job_id, BlockDriverState *bs,
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 12/12] commit: Implement .bdrv_refresh_filename
In reply to Kevin WolfWe want query-block to return the right filename, even if a commit job put a bdrv_commit_top on top of the actual image format driver. Let bdrv_commit_top.bdrv_refresh_filename get the filename from its backing file.
--- block/commit.c | 8 ++++++++ 1 file changed, 8 insertions(+)
block/commit.c +8 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qemu/cutils.h" #include "trace.h" #include "block/block_int.h" #include "block/blockjob_int.h"
@@ -242,6 +243,12 @@ static int64_t coroutine_fn bdrv_commit_top_get_block_status( (sector_num <<BDRV_SECTOR_BITS ); } +static void bdrv_commit_top_refresh_filename (BlockDriverState *bs,QDict *opts) +{ +bdrv_refresh_filename (bs->backing->bs); +pstrcpy (bs->exact_filename,sizeof (bs->exact_filename), + bs->backing->bs->filename); +}static void bdrv_commit_top_close (BlockDriverState *bs) {
@@ -262,6 +269,7 @@ static BlockDriver bdrv_commit_top = { .format_name = "commit_top", .bdrv_co_preadv = bdrv_commit_top_preadv, .bdrv_co_get_block_status = bdrv_commit_top_get_block_status, + .bdrv_refresh_filename = bdrv_commit_top_refresh_filename, .bdrv_close = bdrv_commit_top_close, .bdrv_child_perm = bdrv_commit_top_child_perm, };
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 03/12] block: Drop unmaintained 'archipelago' driver
In reply to Kevin WolfFrom: Eric Blake <[email protected]>
The driver has failed to build since commit da34e65, in qemu 2.6, due to a missing include of qapi/error.h for error_setg(). Since no one has complained in three releases, it is easier to remove the dead code than to keep it around, especially since it is not being built by default and therefore prone to bitrot.
--- MAINTAINERS | 8 - block/Makefile.objs | 2 - block/archipelago.c | 1079 -------------------------------------- configure | 43 -- qapi/block-core.json | 33 +- tests/qemu-iotests/025 | 2 +- tests/qemu-iotests/common | 6 - tests/qemu-iotests/common.filter | 4 +- tests/qemu-iotests/common.rc | 8 - 9 files changed, 4 insertions(+), 1181 deletions(-) delete mode 100644 block/archipelago.c
MAINTAINERS +0 -8
@@ -1674,14 +1674,6 @@ S: Supported F: block/ssh.c T: git git://github.com/codyprime/qemu-kvm-jtc.git block -ARCHIPELAGO -M: Chrysostomos Nanakos <[email protected]> -M: Jeff Cody <[email protected]> -L: [email protected] -S: Maintained -F: block/archipelago.c -T: git git://github.com/codyprime/qemu-kvm-jtc.git block - CURL M: Jeff Cody <[email protected]> L: [email protected]
block/Makefile.objs +0 -2
@@ -19,7 +19,6 @@ block-obj-$(CONFIG_LIBNFS) += nfs.o block-obj-$(CONFIG_CURL) += curl.o block-obj-$(CONFIG_RBD) += rbd.o block-obj-$(CONFIG_GLUSTERFS) += gluster.o -block-obj-$(CONFIG_ARCHIPELAGO) += archipelago.o block-obj-$(CONFIG_LIBSSH2) += ssh.o block-obj-y += accounting.o dirty-bitmap.o block-obj-y += write-threshold.o
@@ -41,7 +40,6 @@ gluster.o-cflags := $(GLUSTERFS_CFLAGS) gluster.o-libs := $(GLUSTERFS_LIBS) ssh.o-cflags := $(LIBSSH2_CFLAGS) ssh.o-libs := $(LIBSSH2_LIBS) -archipelago.o-libs := $(ARCHIPELAGO_LIBS) block-obj-$(if $(CONFIG_BZIP2),m,n) += dmg-bz2.o dmg-bz2.o-libs := $(BZIP2_LIBS) qcow.o-libs := -lz
block/archipelago.c deleted +0 -1079
1,079 lines not on this page · raw message
configure +0 -43
79 lines not on this page · raw message
qapi/block-core.json +2 -31
@@ -251,6 +251,7 @@ # 2.5: 'host_floppy' dropped # 2.6: 'luks' added # 2.8: 'replication' added, 'tftp' dropped +# 2.9: 'archipelago' dropped # # @backing_file: #optional the name of the backing file (for copy-on-write) #
@@ -2129,7 +2130,7 @@ # Since: 2.0 ## { 'enum': 'BlockdevDriver', - 'data': [ 'archipelago', 'blkdebug', 'blkverify', 'bochs', 'cloop', + 'data': [ 'blkdebug', 'blkverify', 'bochs', 'cloop', 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs', 'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed',
@@ -2343,35 +2344,6 @@ ## -# @BlockdevOptionsArchipelago: -# -# Driver specific block device options for Archipelago. -# -# @volume: Name of the Archipelago volume image -# -# @mport: #optional The port number on which mapperd is -# listening. This is optional -# and if not specified, QEMU will make Archipelago -# use the default port (1001). -# -# @vport: #optional The port number on which vlmcd is -# listening. This is optional -# and if not specified, QEMU will make Archipelago -# use the default port (501). -# -# @segment: #optional The name of the shared memory segment -# Archipelago stack is using. This is optional -# and if not specified, QEMU will make Archipelago -# use the default value, 'archipelago'. -# Since: 2.2 -## -{ 'struct': 'BlockdevOptionsArchipelago', - 'data': { 'volume': 'str', - '*mport': 'int', - '*vport': 'int', - '*segment': 'str' } } - -## # @BlockdevOptionsSsh: # # @server: host address
@@ -2884,7 +2856,6 @@ '*detect-zeroes': 'BlockdevDetectZeroesOptions' }, 'discriminator': 'driver', 'data': { - 'archipelago':'BlockdevOptionsArchipelago', 'blkdebug': 'BlockdevOptionsBlkdebug', 'blkverify': 'BlockdevOptionsBlkverify', 'bochs': 'BlockdevOptionsGenericFormat',
tests/qemu-iotests/025 +1 -1
@@ -39,7 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.pattern _supported_fmt raw qcow2 qed -_supported_proto file sheepdog rbd nfs archipelago +_supported_proto file sheepdog rbd nfs _supported_os Linux echo "=== Creating image"
tests/qemu-iotests/common +0 -6
@@ -156,7 +156,6 @@ check options -nbd test nbd -ssh test ssh -nfs test nfs - -archipelago test archipelago -luks test luks -xdiff graphical mode diff -nocache use O_DIRECT on backing file
@@ -271,11 +270,6 @@ testlist options xpand=false ;; - -archipelago) - IMGPROTO=archipelago - xpand=false - ;; - -nocache) CACHEMODE="none" CACHEMODE_IS_DEFAULT=false
tests/qemu-iotests/common.filter +1 -3
@@ -112,7 +112,6 @@ _filter_img_create() -e "s# block_size=[0-9]\\+##g" \ -e "s# block_state_zero=\\(on\\|off\\)##g" \ -e "s# log_size=[0-9]\\+##g" \ - -e "s/archipelago:a/TEST_DIR\//g" \ -e "s# refcount_bits=[0-9]\\+##g" \ -e "s# key-secret=[a-zA-Z0-9]\\+##g" }
@@ -136,8 +135,7 @@ _filter_img_info() -e "/lazy_refcounts: \\(on\\|off\\)/d" \ -e "/block_size: [0-9]\\+/d" \ -e "/block_state_zero: \\(on\\|off\\)/d" \ - -e "/log_size: [0-9]\\+/d" \ - -e "s/archipelago:a/TEST_DIR\//g" + -e "/log_size: [0-9]\\+/d" } # filter out offsets and file names from qemu-img map
tests/qemu-iotests/common.rc +0 -8
@@ -70,8 +70,6 @@ if [ "$IMGOPTSSYNTAX" = "true" ]; then elif [ "$IMGPROTO" = "nfs" ]; then TEST_DIR="$DRIVER,file.driver=nfs,file.filename=nfs://127.0.0.1/$TEST_DIR" TEST_IMG=$TEST_DIR/t.$IMGFMT - elif [ "$IMGPROTO" = "archipelago" ]; then - TEST_IMG="$DRIVER,file.driver=archipelago,file.volume=:at.$IMGFMT" else TEST_IMG="$DRIVER,file.driver=$IMGPROTO,file.filename=$TEST_DIR/t.$IMGFMT" fi
@@ -87,8 +85,6 @@ else elif [ "$IMGPROTO" = "nfs" ]; then TEST_DIR="nfs://127.0.0.1/$TEST_DIR" TEST_IMG=$TEST_DIR/t.$IMGFMT - elif [ "$IMGPROTO" = "archipelago" ]; then - TEST_IMG="archipelago:at.$IMGFMT" else TEST_IMG=$IMGPROTO:$TEST_DIR/t.$IMGFMT fi
@@ -215,10 +211,6 @@ _cleanup_test_img() rbd --no-progress rm "$TEST_DIR/t.$IMGFMT" > /dev/null ;; - archipelago) - vlmc remove "at.$IMGFMT" > /dev/null - ;; - sheepdog) collie vdi delete "$TEST_DIR/t.$IMGFMT" ;;
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 7 lines · Kevin Wolf
The following changes since commit
dd4d2578215cd380f40a38028a9904e15b135ef3:Merge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170309-1' into staging (2017-03-09 13:16:05 +0000)
are available in the git repository at:
Quoted 8 lines
git://repo.or.cz/qemu/kevin.gittags/for-upstreamfor you to fetch changes up to
dcbf37ce41a52698550f8f8b2f14b5e6fee22d2d:commit: Implement .bdrv_refresh_filename (2017-03-13 12:49:33 +0100)
----------------------------------------------------------------
Block layer fixes for 2.9.0-rc1
We haven't had rc0 yet :-)
Applied, thanks.
-- PMM
Am 13.03.2017 um 19:05 hat Peter Maydell geschrieben:
Quoted 10 lines · Kevin Wolf
Quoted 9 lines
The following changes since commit
dd4d2578215cd380f40a38028a9904e15b135ef3:Merge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170309-1' into staging (2017-03-09 13:16:05 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.gittags/for-upstream
Quoted 8 lines
Quoted 6 lines
for you to fetch changes up to
dcbf37ce41a52698550f8f8b2f14b5e6fee22d2d:commit: Implement .bdrv_refresh_filename (2017-03-13 12:49:33 +0100)
----------------------------------------------------------------
Block layer fixes for 2.9.0-rc1We haven't had rc0 yet :-)
I was assuming that we'd just skip -rc0 then. Are we instead shifting the release by a week or two?
Kevin
Quoted 15 lines · Kevin Wolf
Am 13.03.2017 um 19:05 hat Peter Maydell geschrieben:
Quoted 14 lines · Kevin Wolf
Quoted 13 lines
The following changes since commit
dd4d2578215cd380f40a38028a9904e15b135ef3:Merge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170309-1' into staging (2017-03-09 13:16:05 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.gittags/for-upstreamfor you to fetch changes up to
dcbf37ce41a52698550f8f8b2f14b5e6fee22d2d:commit: Implement .bdrv_refresh_filename (2017-03-13 12:49:33 +0100)
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
----------------------------------------------------------------
Block layer fixes for 2.9.0-rc1We haven't had rc0 yet :-)
I was assuming that we'd just skip -rc0 then. Are we instead shifting the release by a week or two?
I'm planning to push all the rcs back a week. Of course if we get to rc1/rc2 and there's very little going into the tree we can release early, but this basically never happens.
thanks
-- PMM