search for: raw_cid

Displaying 7 results from an estimated 7 matches for "raw_cid".

2020 Jul 07
2
[nbdkit PATCH] nbd: Add vsock-cid= transport option
...ansaction details */ struct transaction { int64_t cookie; @@ -87,8 +94,15 @@ static char *sockname; /* Connect to server via TCP socket */ static const char *hostname; + +/* Valid with TCP or VSOCK */ static const char *port; +/* Connect to server via AF_VSOCK socket */ +static const char *raw_cid; +static uint32_t cid; +static uint32_t vport; + /* Connect to a command. */ static string_vector command = empty_vector; @@ -126,11 +140,8 @@ nbdplug_unload (void) free (command.ptr); /* the strings are statically allocated */ } -/* Called for each key=value passed on the command line. Th...
2019 Nov 22
1
[nbdkit PATCH] nbd: Add vsock_cid= transport option
...ansaction details */ struct transaction { int64_t cookie; @@ -80,8 +87,15 @@ static char *sockname; /* Connect to server via TCP socket */ static const char *hostname; + +/* Valid with TCP or VSOCK */ static const char *port; +/* Connect to server via AF_VSOCK socket */ +static const char *raw_cid; +static uint32_t cid; +static uint32_t vport; + /* Connect to server via URI */ static const char *uri; @@ -116,10 +130,10 @@ nbdplug_unload (void) } /* Called for each key=value passed on the command line. This plugin - * accepts socket=<sockname>, hostname=<hostname>/port=<...
2020 Jul 07
0
Re: [nbdkit PATCH] nbd: Add vsock-cid= transport option
...4_t cookie; > @@ -87,8 +94,15 @@ static char *sockname; > > /* Connect to server via TCP socket */ > static const char *hostname; > + > +/* Valid with TCP or VSOCK */ > static const char *port; > > +/* Connect to server via AF_VSOCK socket */ > +static const char *raw_cid; > +static uint32_t cid; > +static uint32_t vport; > + > /* Connect to a command. */ > static string_vector command = empty_vector; > > @@ -126,11 +140,8 @@ nbdplug_unload (void) > free (command.ptr); /* the strings are statically allocated */ > } > > -/* Ca...
2020 Aug 07
1
Re: [nbdkit PATCH 2/4] file: Add .list_exports support
On Thu, Aug 06, 2020 at 09:23:46PM -0500, Eric Blake wrote: > + if (!filename == !directory) { A bit tricksy. In plugins/nbd/nbd.c I used: int c = !!sockname + !!hostname + !!uri + (command.size > 0) + (socket_fd >= 0) + !!raw_cid; /* Check the user passed exactly one connection parameter. */ if (c > 1) { nbdkit_error ("cannot mix Unix ‘socket’, TCP ‘hostname’/‘port’, ‘vsock’, " "‘command’, ‘socket-fd’ and ‘uri’ parameters"); return -1; } if (c == 0) { nbdkit_erro...
2020 Aug 28
4
[nbdkit PATCH 0/3] .list_exports in nbd plugin
Another series on top of my exportname filter, marking off another todo bullet point. With this, you can now use the NBD plugin as a transparent passthrough of all export names served by the remote server in both directions (list advertisement server to client, and export name from client to server). Eric Blake (3): nbd: Implement .default_export, .export_description nbd: Add
2020 Aug 07
8
[nbdkit PATCH 0/4] More .list_exports uses
Here's changes to the file plugin (which I'm happy with) and a new exportname filter (which is still at RFC stage; I need to finish implementing strict mode in .open, and add tests). I also discovered that we really want .list_exports and .open to know when they are used on plaintext vs. tls clients for --tls=on, and we may want to split out a new .default_export callback rather than
2020 Sep 21
18
[nbdkit PATCH v3 00/14] exportname filter
It's been several weeks since I posted v2 (I got distracted by improving libnbd to better test things, which in turn surfaced some major memory leak problems in nbdsh that are now fixed). Many of the patches are minor rebases from v2, with the biggest changes being fallout from: - patch 2: rename nbdkit_add_default_export to nbdkit_use_default_export - overall: this missed 1.22, so update