OSDN Git Service

nbd: s/handle/cookie/ to match NBD spec
authorEric Blake <eblake@redhat.com>
Thu, 8 Jun 2023 13:56:34 +0000 (08:56 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 19 Jul 2023 20:25:30 +0000 (15:25 -0500)
commit22efd81104f07f7dbe571a923cc43ed625560551
treef106507332fae71e8035ae259c24cbc95b1cd505
parent66d4f4fe2f1c282a34a429f61aa4283e60336500
nbd: s/handle/cookie/ to match NBD spec

Externally, libnbd exposed the 64-bit opaque marker for each client
NBD packet as the "cookie", because it was less confusing when
contrasted with 'struct nbd_handle *' holding all libnbd state.  It
also avoids confusion between the noun 'handle' as a way to identify a
packet and the verb 'handle' for reacting to things like signals.
Upstream NBD changed their spec to favor the name "cookie" based on
libnbd's recommendations[1], so we can do likewise.

[1] https://github.com/NetworkBlockDevice/nbd/commit/ca4392eb2b

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20230608135653.2918540-6-eblake@redhat.com>
[eblake: typo fix]
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/nbd.c
include/block/nbd.h
nbd/client.c
nbd/server.c
nbd/trace-events