Displaying 4 results from an estimated 4 matches for "libnbd_strict_flags".
2020 Sep 11
0
[libnbd PATCH v2 4/5] api: Add STRICT_FLAGS to set_strict_mode
...: string;
+ guard : string option;
flags : (string * int) list
}
and permitted_state =
@@ -165,6 +166,7 @@ let all_enums = [ tls_enum; block_size_enum ]
(* Flags. See also Constants below. *)
let cmd_flags = {
flag_prefix = "CMD_FLAG";
+ guard = Some "((h->strict & LIBNBD_STRICT_FLAGS) || flags > UINT16_MAX)";
flags = [
"FUA", 1 lsl 0;
"NO_HOLE", 1 lsl 1;
@@ -175,6 +177,7 @@ let cmd_flags = {
}
let handshake_flags = {
flag_prefix = "HANDSHAKE_FLAG";
+ guard = None;
flags = [
"FIXED_NEWSTYLE", 1 ls...
2023 May 30
2
[libnbd PATCH v3 04/22] states: Prepare to send 64-bit requests
...addition to test if server negotiated extended mode.
> > + * Until then, strict flags must ignore the PAYLOAD_LEN flag for pwrite,
> > + * even though it is rejected for other commands.
> > + */
> > + strict = nbd_get_strict_mode (nbd);
> > + if (!(strict & LIBNBD_STRICT_FLAGS)) {
> > + fprintf (stderr, "%s: test failed: "
> > + "nbd_get_strict_mode did not have expected flag set\n",
> > + argv[0]);
> > + exit (EXIT_FAILURE);
> > + }
>
> Not sure if I understand this check. Per
> &...
2020 Sep 17
2
Re: [libnbd PATCH v2 4/5] api: Add STRICT_FLAGS to set_strict_mode
...flags : (string * int) list
> }
> and permitted_state =
> @@ -165,6 +166,7 @@ let all_enums = [ tls_enum; block_size_enum ]
> (* Flags. See also Constants below. *)
> let cmd_flags = {
> flag_prefix = "CMD_FLAG";
> + guard = Some "((h->strict & LIBNBD_STRICT_FLAGS) || flags > UINT16_MAX)";
> flags = [
> "FUA", 1 lsl 0;
> "NO_HOLE", 1 lsl 1;
> @@ -175,6 +177,7 @@ let cmd_flags = {
> }
> let handshake_flags = {
> flag_prefix = "HANDSHAKE_FLAG";
> + guard = None;
> fl...
2020 Sep 11
10
[libnbd PATCH v2 0/5] Add knobs for client- vs. server-side validation
In v2:
- now based on my proposal to add LIBNBD_SHUTDOWN_IMMEDIATE
- four flags instead of two: STRICT_FLAGS is new (patch 4),
and STRICT_BOUNDS is separate from STRICT_ZERO_SIZE (patch 5)
- various refactorings for more shared code and less duplication
Eric Blake (5):
api: Add xxx_MASK constant for each Flags type
generator: Refactor filtering of accepted OFlags
api: Add