Am 22.03.2013 um 23:46 hat Paolo Bonzini geschrieben:
> Il 22/03/2013 18:41, Kevin Wolf ha scritto:
> > +QemuOpts *opts = qemu_opts_create_nofail(&socket_optslist);
> > +
> > +qemu_opt_set(opts, "host", s->inet_addr->host);
> > +qemu_opt_set(opts, "port", s->inet_addr->port)
Il 22/03/2013 18:41, Kevin Wolf ha scritto:
> +QemuOpts *opts = qemu_opts_create_nofail(&socket_optslist);
> +
> +qemu_opt_set(opts, "host", s->inet_addr->host);
> +qemu_opt_set(opts, "port", s->inet_addr->port);
> +if (s->inet_addr->has_to) {
> +qemu_opt
The NBD block supports an URL syntax, for which a URL parser returns
separate hostname and port fields. It also supports the traditional qemu
syntax encoded in a filename. Until now, after parsing the URL to get
each piece of information, a new string is built to be fed to socket
functions.
Instea