You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/block
Eric Blake ff12e6a5ff nbd/server: Allow users to adjust handshake limit in QMP
Although defaulting the handshake limit to 10 seconds was a nice QoI
change to weed out intentionally slow clients, it can interfere with
integration testing done with manual NBD_OPT commands over 'nbdsh
--opt-mode'.  Expose a QMP knob 'handshake-max-secs' to allow the user
to alter the timeout away from the default.

The parameter name here intentionally matches the spelling of the
constant added in commit fb1c2aaa98, and not the command-line spelling
added in the previous patch for qemu-nbd; that's because in QMP,
longer names serve as good self-documentation, and unlike the command
line, machines don't have problems generating longer spellings.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20250203222722.650694-6-eblake@redhat.com>
[eblake: s/max-secs/max-seconds/ in QMP]
Acked-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
2 weeks ago
..
export block/export: Add option to allow export of inactive nodes 2 weeks ago
monitor nbd/server: Allow users to adjust handshake limit in QMP 2 weeks ago
accounting.c include: Rename sysemu/ -> system/ 2 months ago
aio_task.c block: Remove unused aio_task_pool_empty 5 months ago
amend.c block: Mark BlockDriver callbacks for amend job GRAPH_RDLOCK 2 years ago
backup.c include: Rename sysemu/ -> system/ 2 months ago
blkdebug.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
blkio.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
blklogwrites.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
blkreplay.c include: Rename sysemu/ -> system/ 2 months ago
blkverify.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
block-backend.c block: Support inactive nodes in blk_insert_bs() 2 weeks ago
block-copy.c include: Rename sysemu/ -> system/ 2 months ago
block-gen.h block-coroutine-wrapper.py: support also basic return types 2 years ago
block-ram-registrar.c include: Rename sysemu/ -> system/ 2 months ago
bochs.c block: Take graph lock for most of .bdrv_open 1 year ago
cloop.c block: Take graph lock for most of .bdrv_open 1 year ago
commit.c include: Rename sysemu/ -> system/ 2 months ago
copy-before-write.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
copy-before-write.h backup: add minimum cluster size to performance options 5 months ago
copy-on-read.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
copy-on-read.h block: Mark bdrv_(un)freeze_backing_chain() and callers GRAPH_RDLOCK 1 year ago
coroutines.h include: Rename sysemu/ -> system/ 2 months ago
create.c include: Include missing 'qemu/clang-tsa.h' header 2 months ago
crypto.c include: Rename sysemu/ -> system/ 2 months ago
crypto.h block: Support detached LUKS header creation using qemu-img 1 year ago
curl.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
dirty-bitmap.c block: Mark bdrv_*_dirty_bitmap() and callers GRAPH_RDLOCK 2 years ago
dmg-bz2.c Include qemu-common.h exactly where needed 6 years ago
dmg-lzfse.c block/dmg: Ignore C99 prototype declaration mismatch from <lzfse.h> 2 years ago
dmg.c block: Protect bs->file with graph_lock 1 year ago
dmg.h block/dmg: Declare a type definition for DMG uncompress function 2 years ago
file-posix.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
file-win32.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
filter-compress.c block: Take graph lock for most of .bdrv_open 1 year ago
gluster.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
graph-lock.c graph-lock: remove AioContext locking 1 year ago
io.c include: Rename sysemu/ -> system/ 2 months ago
io_uring.c include: Rename sysemu/ -> system/ 2 months ago
iscsi-opts.c modules: add block module annotations 4 years ago
iscsi.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
linux-aio.c include: Rename sysemu/ -> system/ 2 months ago
meson.build include: Rename sysemu/ -> system/ 2 months ago
mirror.c include: Rename sysemu/ -> system/ 2 months ago
nbd.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
nfs.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
null.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
nvme.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
parallels-ext.c qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 5 months ago
parallels.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
parallels.h block: Protect bs->file with graph_lock 1 year ago
preallocate.c block: Protect bs->file with graph_lock 1 year ago
progress_meter.c coroutine: Clean up superfluous inclusion of qemu/lockable.h 2 years ago
qapi-system.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qapi.c Block layer patches 2 weeks ago
qcow.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qcow2-bitmap.c block/qcow2-bitmap: Replace g_memdup() by g_memdup2() 10 months ago
qcow2-cache.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 1 year ago
qcow2-cluster.c qcow2: Take locks for accessing bs->file 1 year ago
qcow2-refcount.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 1 year ago
qcow2-snapshot.c include: Rename sysemu/ -> system/ 2 months ago
qcow2-threads.c thread-pool: avoid passing the pool parameter every time 2 years ago
qcow2.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qcow2.h qcow2: Take locks for accessing bs->file 1 year ago
qed-check.c qed: mark more functions as coroutine_fns and GRAPH_RDLOCK 2 years ago
qed-cluster.c qed: protect table cache with CoMutex 8 years ago
qed-l2-cache.c osdep: Move memalign-related functions to their own header 3 years ago
qed-table.c block: use bdrv_co_debug_event in coroutine context 2 years ago
qed.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qed.h block: Protect bs->file with graph_lock 1 year ago
quorum.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
raw-format.c raw-format: Fix error message for invalid offset/size 4 months ago
rbd.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
replication.c Block layer patches 2 weeks ago
reqlist.c block/reqlist: allow adding overlapping requests 5 months ago
snapshot-access.c include: Rename sysemu/ -> system/ 2 months ago
snapshot.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
ssh.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
stream.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
throttle-groups.c include: Rename sysemu/ -> system/ 2 months ago
throttle.c block: Take graph lock for most of .bdrv_open 1 year ago
trace-events nbd/client: Accept 64-bit block status chunks 1 year ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vdi.c include: Rename sysemu/ -> system/ 2 months ago
vhdx-endian.c Include qemu-common.h exactly where needed 6 years ago
vhdx-log.c vhdx: Take locks for accessing bs->file 1 year ago
vhdx.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
vhdx.h vhdx: Take locks for accessing bs->file 1 year ago
vmdk.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
vpc.c Block layer patches 2 weeks ago
vvfat.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
win32-aio.c aio: remove aio_disable_external() API 2 years ago
write-threshold.c block: remove AioContext locking 1 year ago