Displaying 20 results from an estimated 24 matches for "get_protocol".
2019 Sep 17
0
[PATCH libnbd 2/2] api: New API for reading NBD protocol.
...omment = "Finish off newstyle negotiation";
+ };
]
(* Fixed newstyle NBD_OPT_STARTTLS option. *)
@@ -1574,6 +1584,20 @@ are free to pass in other contexts."
"L<nbd_block_status(3)>"; "L<nbd_aio_block_status(3)>"];
};
+ "get_protocol", {
+ default_call with
+ args = []; ret = RStaticString;
+ permitted_states = [ Connected; Closed ];
+ shortdesc = "return the NBD protocol variant";
+ longdesc = "\
+Return the NBD protocol variant in use on the connection. At
+the moment this returns one of th...
2019 Sep 17
3
[PATCH libnbd 1/2] api: Add new API to read whether TLS was negotiated.
When LIBNBD_TLS_ALLOW is used we don't have a way to find out if TLS
was really negotiated. This adds a flag and a way to read it back.
Unfortunately there is no test yet, because LIBNBD_TLS_ALLOW is not
tested -- it really should be but requires quite a complicated set of
tests because ideally we'd like to find out whether it falls back
correctly for all supported servers.
---
TODO
2019 Sep 17
1
Re: [PATCH libnbd 2/2] api: New API for reading NBD protocol.
...as an issue.
>
> It was helpful to add a new state in newstyle negotiation
> (%NEWSTYLE.FINISHED) so we can route all successful option
> negotiations through a single path before moving to the %READY state,
> allowing us to set h->protocol in one place.
> ---
> + "get_protocol", {
> + default_call with
> + args = []; ret = RStaticString;
> + permitted_states = [ Connected; Closed ];
> + shortdesc = "return the NBD protocol variant";
> + longdesc = "\
> +Return the NBD protocol variant in use on the connection. At
>...
2019 Sep 17
1
[libnbd PATCH] api: Add nbd_get_structured_replies_negotiated
...= "\
+After connecting you may call this to find out if the connection is
+using structured replies.";
+ see_also = ["L<nbd_set_request_structured_replies(3)>";
+ "L<nbd_get_request_structured_replies(3)>";
+ "L<nbd_get_protocol(3)>"];
};
"set_handshake_flags", {
@@ -1673,7 +1690,9 @@ be returned in the future.
Most modern NBD servers use C<\"newstyle-fixed\">.
"
^ non_blocking_test_call_description;
- see_also = ["L<nbd_get_handshake_flags(3)>"];
+ see...
2020 Aug 11
0
Re: [libnbd PATCH] API: Add nbd_set_opt_mode to expose NEGOTIATING state
...yle";
> + else
> + h->protocol = "newstyle-fixed";
> +
> cflags = h->gflags;
> h->sbuf.cflags = htobe32 (cflags);
> h->wbuf = &h->sbuf;
This makes me think maybe we should just derive this string from the
gflags when the caller calls get_protocol.
> diff --git a/lib/is-state.c b/lib/is-state.c
> index 1a85c7a..e019e53 100644
> --- a/lib/is-state.c
> +++ b/lib/is-state.c
> @@ -1,5 +1,5 @@
> /* NBD client library in userspace
> - * Copyright (C) 2013-2019 Red Hat Inc.
> + * Copyright (C) 2013-2020 Red Hat Inc.
>...
2020 Aug 11
3
Re: [libnbd PATCH] API: Add nbd_set_opt_mode to expose NEGOTIATING state
...h->protocol = "newstyle-fixed";
>> +
>> cflags = h->gflags;
>> h->sbuf.cflags = htobe32 (cflags);
>> h->wbuf = &h->sbuf;
>
> This makes me think maybe we should just derive this string from the
> gflags when the caller calls get_protocol.
Doable. Probably even something we could separate out, to keep the meat
of this patch more focused.
>> +bool
>> +nbd_internal_is_state_negotiating (enum state state)
>> +{
>> + return state == STATE_NEGOTIATING;
>> +}
>> +
>> bool
>> nbd_in...
2020 Sep 11
0
[libnbd PATCH v2 3/5] api: Add nbd_set_strict_mode
...";
longdesc = "\
@@ -706,10 +719,62 @@ protocol defines new handshake flags, then the return value from
a newer library version may include bits that were undefined at
the time of compilation.";
see_also = [Link "set_handshake_flags";
- Link "get_protocol";
+ Link "get_protocol"; Link "set_strict_mode";
Link "aio_is_created"; Link "aio_is_ready"];
};
+ "set_strict_mode", {
+ default_call with
+ args = [ Flags ("flags", strict_flags) ]; ret = R...
2020 Aug 11
3
[libnbd PATCH] API: Add nbd_set_opt_mode to expose NEGOTIATING state
...ates = [ Created ];
+ permitted_states = [ Created; Negotiating ];
shortdesc = "ask server to negotiate metadata context";
longdesc = "\
During connection libnbd can negotiate zero or more metadata
@@ -1240,7 +1300,7 @@ are free to pass in other contexts."
"get_protocol", {
default_call with
args = []; ret = RStaticString;
- permitted_states = [ Connected; Closed ];
+ permitted_states = [ Negotiating; Connected; Closed ];
shortdesc = "return the NBD protocol variant";
longdesc = "\
Return the NBD protocol variant in u...
2019 Sep 26
0
[PATCH libnbd 2/2] api: Implement local command with systemd socket activation.
...connect_socket_activation(3)>.
+
You can check if the connection is still connecting by calling
L<nbd_aio_is_connecting(3)>, or if it has connected to the server
and completed the NBD handshake by calling L<nbd_aio_is_ready(3)>,
@@ -2678,6 +2719,8 @@ let first_version = [
"get_protocol", (1, 2);
"set_handshake_flags", (1, 2);
"get_handshake_flags", (1, 2);
+ "connect_socket_activation", (1, 2);
+ "aio_connect_socket_activation", (1, 2);
(* These calls are proposed for a future version of libnbd, but
* have not been add...
2020 Feb 10
0
[libnbd PATCH 1/1] generator: Add support for NBD_INFO_INIT_STATE extension
...calls";
Link "add_meta_context";
- Link "block_status"; Link "aio_block_status"];
+ Link "block_status"; Link "aio_block_status";
+ Link "get_init_flags"];
};
"get_protocol", {
@@ -1990,6 +1991,30 @@ Most modern NBD servers use C<\"newstyle-fixed\">.
Link "get_tls_negotiated"];
};
+ "get_init_flags", {
+ default_call with
+ args = []; ret = RInt;
+ permitted_states = [ Connected; Closed ];
+ sh...
2020 Jul 24
4
[libnbd PATCH 0/3] Expose server block size constraints
Necessary when writing a client that wants to avoid unnecessary EINVAL
errors from sending unaligned requests.
At some point, we may want to add synchronous convenience API wrappers
that do request splitting or read-modify-write to obey server
constraints while still appearing to the library client as accepting
any possible request. But such a wrapper should only be synchronous
and not copied to
2019 Sep 30
0
[PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...connect_socket_activation(3)>.
+
You can check if the connection is still connecting by calling
L<nbd_aio_is_connecting(3)>, or if it has connected to the server
and completed the NBD handshake by calling L<nbd_aio_is_ready(3)>,
@@ -2678,6 +2719,8 @@ let first_version = [
"get_protocol", (1, 2);
"set_handshake_flags", (1, 2);
"get_handshake_flags", (1, 2);
+ "connect_socket_activation", (1, 2);
+ "aio_connect_socket_activation", (1, 2);
(* These calls are proposed for a future version of libnbd, but
* have not been add...
2019 Oct 04
4
[PATCH libnbd 1/4] generator: Allow long ‘name - shortdesc’ in man pages.
For commands with long names and/or short descriptors, you can end up
going over 72 characters in the first line of the man page (causing
podwrapper to complain). Wrap these lines.
---
generator/generator | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/generator/generator b/generator/generator
index 7d3f656..ad1cb6b 100755
--- a/generator/generator
+++ b/generator/generator
2019 Mar 29
0
Wine release 4.5
...unnecessary 'extends Object' statement.
po: Update Sinhala translation.
po: Update Tamil translation.
Jacek Caban (51):
jscript: Add Object.create implementation.
mshtml: Add IHTMLCSSStyleDeclaration::setProperty implementation.
mshtml: Add IHTMLAnchorElement::get_protocol implementation.
mshtml: Add IHTMLAnchorElement::get_host implementation.
jscript: Support undefined context value in Array.prototype.forEach.
jscript: Support undefined context value in Array.prototype.map.
mshtml: Set elem_vars to NULL when detaching.
mshtml: Remove s...
2011 Dec 30
0
Wine release 1.3.36
...ource to the bottom of the file.
jscript: Get rid of stat_eval_table.
jscript: No longer support per-statement compilation.
jscript: Moved instr_off from statement_t to source_elements_t.
jscript: Added bytecode dumper implementation.
mshtml: Use IUri in IHTMLLocation::get_protocol implementation.
mshtml: Reorder nsIURL functions to match vtbl order.
actxprxy: Added htiface.idl interfaces.
jscript: Handle invalid break statements in compiler.
jscript: Handle invalid continue statements in compiler.
jscript: Make compiler responsible for proper re...
2019 Sep 26
5
[PATCH libnbd 1/2] lib: Avoid killing subprocess twice.
If the user calls nbd_kill_subprocess, we shouldn't kill the process
again when we close the handle (since the process has likely gone and
we might be killing a different process).
---
lib/handle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/handle.c b/lib/handle.c
index 2af25fe..5ad818e 100644
--- a/lib/handle.c
+++ b/lib/handle.c
@@ -315,6 +315,8 @@
2019 Sep 30
4
[PATCH libnbd v2 0/2] Implement systemd socket activation.
v1 was posted here:
https://www.redhat.com/archives/libguestfs/2019-September/thread.html#00337
v2:
- Drop the first patch.
- Hopefully fix the multiple issues with fork-safety and general
behaviour on error paths.
Note this requires execvpe for which there seems to be no equivalent
on FreeBSD, except some kind of tedious path parsing (but can we
assign to environ?)
Rich.
2009 Oct 23
0
Wine release 1.1.32
...es.
mshtml.idl: Add IHTMLDocument6 dispiface.
mshtml: Add stub implementation for IHTMLDocument6.
mshtml: Add test suite for IHTMLLocation.
mshtml: Add helper function get_url_components.
mshtml: Implement IHTMLLocation::get_port.
mshtml: Implement IHTMLLocation::get_protocol.
mshtml: Implement IHTMLLocation::get_host.
mshtml: Implement IHTMLLocation::get_hostname.
mshtml: Reimplement IHTMLLocation::get_href.
mshtml: Reimplement HTMLLocation::get_pathname.
mshtml: Implement IHTMLLocation::get_hash.
mshtml: Implement IHTMLLocation::get...
2020 Aug 19
3
[libnbd PATCH 0/2] NBD_OPT_INFO support
This replaces 13/13 of my v2 series; and now that it has pretty good
testsuite coverage and demonstrable performance improvement to
nbdinfo, I'm going ahead and pushing this now. We may still want to
add further nbd_opt_* commands for other fine-grained tuning of
negotiation, but for now, I think things have stabilized on this end,
and I can return to polishing .list_exports on the nbdkit
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