]> git.proxmox.com Git - mirror_qemu.git/commit - nbd/server.c
nbd/server: Nicer spelling of max BLOCK_STATUS reply length
authorEric Blake <eblake@redhat.com>
Fri, 10 May 2019 15:17:35 +0000 (10:17 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 13 Jun 2019 13:56:10 +0000 (08:56 -0500)
commit416e34bd04bea32a6e68c103dbbb4210a1f1d0dd
treedb8c651d152cf3f4e28fc2ae923c32877d5b5be0
parentb28f582c2acaca26b66262d75cc5a0bd2764482c
nbd/server: Nicer spelling of max BLOCK_STATUS reply length

Commit 3d068aff (3.0) introduced NBD_MAX_BITMAP_EXTENTS as a limit on
how large we would allow a reply to NBD_CMD_BLOCK_STATUS to grow when
it is visiting a qemu:dirty-bitmap: context.  Later, commit fb7afc79
(3.1) reused the constant to limit base:allocation context replies,
although the name is now less appropriate in that situation.

Rename things, and improve the macro to use units.h for better
legibility. Then reformat the comment to comply with checkpatch rules
added in the meantime. No semantic change.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190510151735.29687-1-eblake@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
nbd/server.c