]> git.proxmox.com Git - mirror_qemu.git/commit - block/gluster.c
gluster: default scheme to gluster:// and host to localhost.
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Feb 2014 13:43:54 +0000 (14:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 20:02:23 +0000 (21:02 +0100)
commit24897a767bd778fc6a050537d024565f9272cd06
tree36e3ec6ee54e2a2231a7eb9adccc1cfabb24aed9
parentf2917853f715b0ef55df29eb2ffea29dc69ce814
gluster: default scheme to gluster:// and host to localhost.

Currently, "gluster:///volname/img" and (using file. options)
"file.driver=gluster,file.filename=foo" will segfault.  Also,
"//host/volname/img" will be rejected, but it is a valid URL
that should be accepted just fine with "file.driver=gluster".
Accept all of these, by inferring missing transport and host
as TCP and localhost respectively.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/gluster.c