All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xen.org
Subject: Re: ocaml libxl bindings and KeyedUnion
Date: Fri, 20 Mar 2015 17:01:06 +0000	[thread overview]
Message-ID: <1426870866.21742.224.camel@citrix.com> (raw)
In-Reply-To: <20150320164417.GA23886@aepfle.de>

On Fri, 2015-03-20 at 17:44 +0100, Olaf Hering wrote:
> +         ("dev", Struct(None, [("m", libxl_vscsi_hctl)])),
> +         ("wwn", Struct(None, [("m", string)])),
> +         ("hctl", Struct(None, [("m", libxl_vscsi_hctl)])),

> > Aside: What is the difference between dev and hctl in this context?
> 
> Its supposed to represent either "/dev/something" and "h:ct:l".

So shouldn't dev by a string then?

>  The
> result in the "p-dev" property, which is used by the backend, is the
> same.  But translating "p-dev" back into the config string for the
> scsi-list command needs some way to represent that. I'm not fully happy
> with the current way. Perhaps the code should just reuse the "p-devname"
> property to tell what was in the config file.

Perhaps the list command should just list the canonical name for the
device (i.e p-dev? a h:c:t:l tuple) and not worry about matching the
config file?

I'd even go as far as suggesting that the libxl API ought only to deal
with the canonical name and that the toolstack can parse whatever forms
it likes into that (perhaps using a helper from libxlu). That would make
the libxl interface a lot simpler, wouldn't it?

Ian.

  reply	other threads:[~2015-03-20 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20  8:10 ocaml libxl bindings and KeyedUnion Olaf Hering
2015-03-20  9:25 ` Ian Campbell
2015-03-20 16:44   ` Olaf Hering
2015-03-20 17:01     ` Ian Campbell [this message]
2015-03-24 12:18       ` Olaf Hering

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=1426870866.21742.224.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=olaf@aepfle.de \
    --cc=xen-devel@lists.xen.org \
    /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.