All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: ashish mittal <ashmit602@gmail.com>,
	"Daniel P. Berrange" <berrange@redhat.com>,
	qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	Jeff Cody <jcody@redhat.com>,
	famz@redhat.com, Ashish Mittal <ashish.mittal@veritas.com>,
	Stefan Hajnoczi <stefanha@gmail.com>,
	Rakesh Ranjan <Rakesh.Ranjan@veritas.com>,
	Buddhi.Madhav@veritas.com, Ketan.Nilangekar@veritas.com,
	Abhijit.Dey@veritas.com, Venkatesha.Mg@veritas.com
Subject: Re: [Qemu-devel] [PATCH v3] block/vxhs: Add Veritas HyperScale VxHS block device support
Date: Wed, 2 Nov 2016 16:02:07 +0100	[thread overview]
Message-ID: <20161102150207.GI6182@noname.redhat.com> (raw)
In-Reply-To: <1be58a5d-3690-a9b2-d395-01c72ba64e78@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2072 bytes --]

Am 02.11.2016 um 15:13 hat Eric Blake geschrieben:
> On 11/02/2016 04:57 AM, Kevin Wolf wrote:
> >>> IMHO it should allow use of UNIX sockets, as its possible to have
> >>> SSH setup a tunnel to a IP server, and expose the endpoint via a
> >>> UNIX socket. So even if your reference server only supports IPv4,
> >>> users can conceivably connect with any sockets protocol.
> >>>
> >>
> >> This is not a use-case that we have in mind right now, but a very fair
> >> point! Kind of like accessing the audio/video streams remotely from my
> >> Raspberry Pi over ssh. Is it OK if we target this in a future patch
> >> after proper review/testing?
> > 
> > No, going from InetSocketAddress to SocketAddress changes the API in an
> > incompatible way (previously working blockdev-add commands would stop
> > working), so we must decide now before the API is introduced.
> 
> Going from InetSocketAddress to SocketAddress is a pain because
> SocketAddress is a 'simple union' (which really means extra nesting on
> the wire).  I'd really rather that blockdev-add move towards the
> GlusterServer style of a 'flat union', which CAN be done in a
> backwards-compatible manner.

However, the actual networking functions in qemu take a SocketAddress or
InetSocketAddress pointer, not whatever else we would invent for the
block layer API, so we would have to add conversion functions. The whole
point of using these types was to have a consistent API with other
subsystems. :-/

gluster and NFS can use something different only because they don't use
the qemu networking functions, but whatever limited set of options their
external library supports.

> [side note: Uggh - why did we let gluster go into 2.7 with 'tcp' instead
> of 'inet' :( I'm wondering if we want gluster in 2.8 to recognize 'inet'
> as a synonym for 'tcp'; I could propose a patch if we think it is
> worthwhile]

Fine with me. Remove 'tcp' from the schema then as long as blockdev-add
is still experimental. We only need to keep it working on the command
line.

Kevin

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2016-11-02 15:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28  7:44 [Qemu-devel] [PATCH v3] block/vxhs: Add Veritas HyperScale VxHS block device support Ashish Mittal
2016-10-28 14:44 ` Eric Blake
2016-10-28 21:30   ` ashish mittal
2016-10-31 10:55     ` Daniel P. Berrange
2016-11-01  4:03       ` ashish mittal
2016-11-02  9:57         ` Kevin Wolf
2016-11-02 14:13           ` Eric Blake
2016-11-02 15:02             ` Kevin Wolf [this message]
2016-11-02 16:41             ` ashish mittal
2016-10-28 19:03 ` Jeff Cody
2016-10-28 21:58   ` Buddhi Madhav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161102150207.GI6182@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=Abhijit.Dey@veritas.com \
    --cc=Buddhi.Madhav@veritas.com \
    --cc=Ketan.Nilangekar@veritas.com \
    --cc=Rakesh.Ranjan@veritas.com \
    --cc=Venkatesha.Mg@veritas.com \
    --cc=armbru@redhat.com \
    --cc=ashish.mittal@veritas.com \
    --cc=ashmit602@gmail.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.