Re: [Qemu-devel] [PATCH 06/14] nbd: Keep hostname and port separate

2013-03-25 Thread Kevin Wolf
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)

Re: [Qemu-devel] [PATCH 06/14] nbd: Keep hostname and port separate

2013-03-22 Thread Paolo Bonzini
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

[Qemu-devel] [PATCH 06/14] nbd: Keep hostname and port separate

2013-03-22 Thread Kevin Wolf
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