qemu-e2k/block
Kevin Wolf 8ccb9569a9 blockjob: Store device name at job creation
Some block jobs change the block device graph on completion. This means
that the device that owns the job and originally was addressed with its
device name may no longer be what the corresponding BlockBackend points
to.

Previously, the effects of bdrv_swap() ensured that the job was (at
least partially) transferred to the target image. Events that contain
the device name could still use bdrv_get_device_name(job->bs) and get
the same result.

After removing bdrv_swap(), this won't work any more. Instead, save the
device name at job creation and use that copy for QMP events and
anything else identifying the job.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-10-16 15:34:30 +02:00
..
accounting.c
archipelago.c
backup.c Backup: don't do copy-on-read in before_write_notifier 2015-09-25 08:37:07 -04:00
blkdebug.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
blkverify.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
block-backend.c block-backend: Add blk_set_bs() 2015-10-16 15:34:29 +02:00
bochs.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
cloop.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
commit.c
curl.c
dmg.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
gluster.c
io.c block/io: Make bdrv_requests_pending() public 2015-10-16 15:34:29 +02:00
iscsi.c
linux-aio.c
Makefile.objs
mirror.c blockjob: Store device name at job creation 2015-10-16 15:34:30 +02:00
nbd-client.c
nbd-client.h
nbd.c nbd: convert to use the QAPI SocketAddress object 2015-09-25 12:04:40 +02:00
nfs.c block/nfs: cache allocated filesize for read-only files 2015-09-25 08:37:07 -04:00
null.c
parallels.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
qapi.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2-cache.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2-cluster.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2-refcount.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2-snapshot.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
qcow2.h
qcow.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
qed.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
qed.h
quorum.c quorum: Convert to BdrvChild 2015-10-16 15:34:29 +02:00
raw_bsd.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
raw-aio.h
raw-posix.c block: switch from g_slice allocator to malloc 2015-10-12 11:17:45 +01:00
raw-win32.c block: switch from g_slice allocator to malloc 2015-10-12 11:17:45 +01:00
rbd.c
sheepdog.c sheepdog: refine discard support 2015-09-25 10:25:19 -04:00
snapshot.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
ssh.c block/ssh: remove dead code 2015-10-08 19:46:01 +03:00
stream.c block: Manage backing file references in bdrv_set_backing_hd() 2015-10-16 15:34:29 +02:00
throttle-groups.c
vdi.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
vhdx-endian.c
vhdx-log.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
vhdx.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
vhdx.h
vmdk.c block: Convert bs->backing_hd to BdrvChild 2015-10-16 15:34:29 +02:00
vpc.c block: Convert bs->file to BdrvChild 2015-10-16 15:34:29 +02:00
vvfat.c block: Manage backing file references in bdrv_set_backing_hd() 2015-10-16 15:34:29 +02:00
win32-aio.c
write-threshold.c