search for: exportname_in

Displaying 3 results from an estimated 3 matches for "exportname_in".

2020 Jul 22
1
Re: [PATCH nbdkit] server: Pass the export name through filter .open calls.
...ize_t len, const char *fmt, ...) > > * in that function, and must not cause any wire traffic. > > */ > > static int > >-finish_newstyle_options (uint64_t *exportsize) > >+finish_newstyle_options (uint64_t *exportsize, > >+ const char *exportname_in, uint32_t exportnamelen) > > { > > GET_CONN; > >- if (protocol_common_open (exportsize, &conn->eflags) == -1) > >+ /* Since the exportname string passed here comes directly out of the > >+ * NBD protocol make a temporary copy of the exportname into a &gt...
2020 Jul 22
0
Re: [PATCH nbdkit] server: Pass the export name through filter .open calls.
..._recv_full (void *buf, size_t len, const char *fmt, ...) > * in that function, and must not cause any wire traffic. > */ > static int > -finish_newstyle_options (uint64_t *exportsize) > +finish_newstyle_options (uint64_t *exportsize, > + const char *exportname_in, uint32_t exportnamelen) > { > GET_CONN; > > - if (protocol_common_open (exportsize, &conn->eflags) == -1) > + /* Since the exportname string passed here comes directly out of the > + * NBD protocol make a temporary copy of the exportname into a > + * \0-t...
2020 Jul 21
4
[PATCH nbdkit] server: Pass the export name through filter .open calls.
...tyle.c @@ -200,11 +200,29 @@ conn_recv_full (void *buf, size_t len, const char *fmt, ...) * in that function, and must not cause any wire traffic. */ static int -finish_newstyle_options (uint64_t *exportsize) +finish_newstyle_options (uint64_t *exportsize, + const char *exportname_in, uint32_t exportnamelen) { GET_CONN; - if (protocol_common_open (exportsize, &conn->eflags) == -1) + /* Since the exportname string passed here comes directly out of the + * NBD protocol make a temporary copy of the exportname into a + * \0-terminated buffer. + */ + CLEANUP_FR...