Skip to content
Snippets Groups Projects
user avatar
John Snow authored
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: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Message-id: 20181002230218.13949-2-jsnow@redhat.com
[w/edits Suggested-By: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com&gt;]>
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
993edc0c
History