]> git.proxmox.com Git - mirror_qemu.git/commit - block/dirty-bitmap.c
bitmap: Enforce maximum bitmap name length
authorEric Blake <eblake@redhat.com>
Thu, 14 Nov 2019 02:46:33 +0000 (20:46 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 18 Nov 2019 22:01:34 +0000 (16:01 -0600)
commitcf7c49cf6aedb0486ca7ba7c32aa819fe51dadfb
treed22968feb61ad3cd6060605293ed8f1a9976d6b4
parent9d7ab222da5a9de61b34f26ec442d37ccdd18cf0
bitmap: Enforce maximum bitmap name length

We document that for qcow2 persistent bitmaps, the name cannot exceed
1023 bytes.  It is inconsistent if transient bitmaps do not have to
abide by the same limit, and it is unlikely that any existing client
even cares about using bitmap names this long.  It's time to codify
that ALL bitmaps managed by qemu (whether persistent in qcow2 or not)
have a documented maximum length.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20191114024635.11363-3-eblake@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
block/dirty-bitmap.c
block/qcow2-bitmap.c
include/block/dirty-bitmap.h
qapi/block-core.json