Displaying 1 result from an estimated 1 matches for "libnbd_cmd_flag_payload_len".
2023 May 30
2
[libnbd PATCH v3 04/22] states: Prepare to send 64-bit requests
...was negotiated
> > + * than to require the user to have to set it correctly.
> > + * TODO: Add new h->strict bit to allow intentional protocol violation
> > + * for interoperability testing.
> > + */
> > + if (h->extended_headers)
> > + flags |= LIBNBD_CMD_FLAG_PAYLOAD_LEN;
> > + else
> > + flags &= ~LIBNBD_CMD_FLAG_PAYLOAD_LEN;
>
> Nice -- I wanted to ask for:
>
> flags &= ~(uint32_t)LIBNBD_CMD_FLAG_PAYLOAD_LEN;
>
> due to LIBNBD_CMD_FLAG_PAYLOAD_LEN having type "int".
>
> However: in patch#3, what ha...