qemu-e2k/include/block
Eric Blake bfe04d0a7d nbd: Use enum for various negotiation modes
Deciphering the hard-coded list of integer return values from
nbd_start_negotiate() will only get more confusing when adding support
for 64-bit extended headers.  Better is to name things in an enum.
Although the function in question is private to client.c, putting the
enum in a public header and including an enum-to-string conversion
will allow its use in more places in upcoming patches.

The enum is intentionally laid out so that operators like <= can be
used to group multiple modes with similar characteristics, and where
the least powerful mode has value 0, even though this patch does not
exploit that.  No semantic change intended.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20230608135653.2918540-9-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
2023-07-19 15:26:13 -05:00
..
accounting.h
aio_task.h
aio-wait.h
aio.h aio: remove aio_disable_external() API 2023-05-30 17:37:26 +02:00
block_backup.h
block_int-common.h block: remove bdrv_co_io_plug() API 2023-06-01 08:59:24 -04:00
block_int-global-state.h
block_int-io.h
block_int.h
block-common.h block-coroutine-wrapper: Take AioContext lock in no_co_wrappers 2023-05-30 17:21:23 +02:00
block-copy.h
block-global-state.h
block-hmp-cmds.h
block-io.h block: use bdrv_co_debug_event in coroutine context 2023-06-28 09:46:34 +02:00
block.h
blockjob_int.h blockjob: Adhere to rate limit even when reentered early 2023-05-19 19:12:12 +02:00
blockjob.h
dirty-bitmap.h
export.h block/export: don't require AioContext lock around blk_exp_ref/unref() 2023-05-30 17:32:02 +02:00
fuse.h
graph-lock.h graph-lock: Unlock the AioContext while polling 2023-06-28 08:46:23 +02:00
nbd.h nbd: Use enum for various negotiation modes 2023-07-19 15:26:13 -05:00
nvme.h
qapi.h
qdict.h
raw-aio.h block/linux-aio: convert to blk_io_plug_call() API 2023-06-01 07:34:03 -04:00
replication.h
reqlist.h
snapshot.h
thread-pool.h
throttle-groups.h
write-threshold.h