Commit d9782022 authored by John Snow's avatar John Snow
Browse files

nbd: forbid use of frozen bitmaps



Whether it's "locked" or "frozen", it's in use and should
not be allowed for the purposes of this operation.

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20181002230218.13949-7-jsnow@redhat.com
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
parent b27a6b8b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2456,8 +2456,8 @@ void nbd_export_bitmap(NBDExport *exp, const char *bitmap,
        return;
    }

    if (bdrv_dirty_bitmap_qmp_locked(bm)) {
        error_setg(errp, "Bitmap '%s' is locked", bitmap);
    if (bdrv_dirty_bitmap_user_locked(bm)) {
        error_setg(errp, "Bitmap '%s' is in use", bitmap);
        return;
    }