qemu-e2k/block
John Snow 993edc0ce0 block/dirty-bitmaps: add user_locked status checker
Instead of both frozen and qmp_locked checks, wrap it into one check.
frozen implies the bitmap is split in two (for backup), and shouldn't
be modified. qmp_locked implies it's being used by another operation,
like being exported over NBD. In both cases it means we shouldn't allow
the user to modify it in any meaningful way.

Replace any usages where we check both frozen and qmp_locked with the
new check.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20181002230218.13949-2-jsnow@redhat.com
[w/edits Suggested-By: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>]
Signed-off-by: John Snow <jsnow@redhat.com>
2018-10-29 16:23:16 -04:00
..
accounting.c
backup.c
blkdebug.c
blklogwrites.c
blkreplay.c trivial: Make bios files and source files non-executable 2018-09-25 17:26:18 +02:00
blkverify.c
block-backend.c block-backend: Set werror/rerror defaults in blk_new() 2018-10-01 19:13:46 +02:00
bochs.c
cloop.c
commit.c block/commit: refactor commit to use job callbacks 2018-09-25 15:31:15 +02:00
copy-on-read.c
create.c
crypto.c
crypto.h
curl.c curl: Make sslverify=off disable host as well as peer verification. 2018-09-24 23:46:05 -04:00
dirty-bitmap.c block/dirty-bitmaps: add user_locked status checker 2018-10-29 16:23:16 -04:00
dmg-bz2.c
dmg.c
dmg.h
file-posix.c file-posix: Forbid trying to change unsupported options during reopen 2018-10-01 12:51:12 +02:00
file-win32.c
gluster.c
io.c block: Use a single global AioWait 2018-09-25 15:50:15 +02:00
iscsi-opts.c
iscsi.c block: Use warn_report() & friends to report warnings 2018-10-19 14:51:34 +02:00
linux-aio.c block/linux-aio: acquire AioContext before qemu_laio_process_completions 2018-09-25 15:50:15 +02:00
Makefile.objs
mirror.c block/mirror: conservative mirror_exit refactor 2018-09-25 15:31:15 +02:00
nbd-client.c
nbd-client.h
nbd.c
nfs.c
null.c
nvme.c nvme: correct locking around completion 2018-10-12 09:46:14 +08:00
parallels.c
parallels.h
qapi.c
qcow2-bitmap.c
qcow2-cache.c
qcow2-cluster.c
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c bloc/qcow2: drop dirty_bitmaps_loaded state variable 2018-10-29 16:23:15 -04:00
qcow2.h bloc/qcow2: drop dirty_bitmaps_loaded state variable 2018-10-29 16:23:15 -04:00
qcow.c
qed-check.c
qed-cluster.c
qed-l2-cache.c
qed-table.c
qed.c error: Fix use of error_prepend() with &error_fatal, &error_abort 2018-10-19 14:51:34 +02:00
qed.h
quorum.c
raw-format.c
rbd.c block: Use warn_report() & friends to report warnings 2018-10-19 14:51:34 +02:00
replication.c
sheepdog.c block: Use warn_report() & friends to report warnings 2018-10-19 14:51:34 +02:00
snapshot.c
ssh.c
stream.c block/stream: refactor stream to use job callbacks 2018-09-25 15:31:15 +02:00
throttle-groups.c
throttle.c
trace-events
vdi.c
vhdx-endian.c
vhdx-log.c
vhdx.c
vhdx.h
vmdk.c vmdk: align end of file to a sector boundary 2018-09-26 10:47:18 +08:00
vpc.c vpc: Fail open on bad header checksum 2018-10-19 14:55:46 +02:00
vvfat.c
vxhs.c
win32-aio.c
write-threshold.c