Re: [Libguestfs] [PATCH v2 1/3] docs: Clarify NBD_REPLY_TYPE_ERROR lengths
On Fri, Mar 25, 2022 at 07:41:00AM -0500, Eric Blake wrote:
> Add explicit mention that human-readable error message strings must
> comply with the overall NBD string limits.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
> doc/proto.md | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/doc/proto.md b/doc/proto.md
> index 81ac755..bfebb5a 100644
> --- a/doc/proto.md
> +++ b/doc/proto.md
> @@ -1824,7 +1824,9 @@ remaining structured fields at the end.
> be at least 6. This chunk represents that an error occurred,
> and the client MAY NOT make any assumptions about partial
> success. This type SHOULD NOT be used more than once in a
> - structured reply. Valid as a reply to any request.
> + structured reply. Valid as a reply to any request. Note that
> + *message length* MUST NOT exceed the 4096 bytes string length
> + limit.
ACK
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit
Reply to: