On Tue, Jul 31, 2012 at 1:38 PM, Bharata B Rao <bhar...@linux.vnet.ibm.com> wrote: > On Tue, Jul 31, 2012 at 09:12:53AM +0100, Stefan Hajnoczi wrote: >> On Wed, Jul 25, 2012 at 6:58 AM, Bharata B Rao >> <bhar...@linux.vnet.ibm.com> wrote: >> > Apart from cleanups, the major change in this version is to expose all >> > the gluster configuration options to QEMU user. With this, the gluster >> > specification looks like this: >> > >> > -drive file=gluster:server:[port]:[transport]:volname:image >> > >> > - Here 'gluster' is the protocol. >> > - 'server' specifies the server where the volume file specification for >> > the given volume resides. >> >> Works fine for hostnames and IPv4 addresses. It seems like the ':' >> separator may prevent users from giving IPv6 addresses unless there is >> a way to escape ':'. > > I feel its better to go the URI way than to escape ':'. I will have this > specification in v4: > > gluster://server:[port]/volname/path/to/image?transport=socket > > As per http://tools.ietf.org/html/rfc3986#section-3.2.2, ipv6 addresses > are specified within square brackets in a URI which makes it easy to parse > the port after :
Okay. Did you check that volnames cannot contain '/'? Stefan