From: Ian Campbell <ian.campbell@citrix.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
Ian Jackson <Ian.Jackson@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Stefano Stabellini <Stefano.Stabellini@citrix.com>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() for ~/control/shutdown
Date: Wed, 25 Nov 2015 10:42:46 +0000 [thread overview]
Message-ID: <1448448166.17688.47.camel@citrix.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F69590A@AMSPEX01CL01.citrite.net>
On Tue, 2015-11-24 at 17:20 +0000, Paul Durrant wrote:
> > -----Original Message-----
> > From: Ian Jackson [mailto:Ian.Jackson@eu.citrix.com]
> > Sent: 24 November 2015 16:35
> > To: Paul Durrant
> > Cc: xen-devel@lists.xenproject.org; Stefano Stabellini; Ian Campbell;
> > Wei Liu
> > Subject: RE: [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() for
> > ~/control/shutdown
> >
> > Paul Durrant writes ("RE: [RFC PATCH 2/6] libxl: stop using
> > libxl__xs_mkdir()
> > for ~/control/shutdown"):
> > > [Ian Jackson]
> > > > Paul Durrant writes ("RE: [RFC PATCH 2/6] libxl: stop using
> > libxl__xs_mkdir()
> > > > for ~/control/shutdown"):
> > > > > [Ian Jackson:]
> > > > > > Maybe it would be easier to rename libxl__xs_mkdir to
> > > > > > libxl__xs_mknode ? (It's probably too late to rename
> > > > > > XS_MKDIR.)
> > > > >
> > > > > There is still the need to set the path to an empty value though,
> > > > > which
> > is
> > > > not implicitly done by the XS_MKDIR.
> > > >
> > > > Under what circumstances would this path not contain an empty value
> > > > after XS_MKDIR ?
> > >
> > > In this case I believe you are correct, but my feeling was that
> > > people reading the code would be lulled into a false sense of
> > > security that XS_MKDIR always did the right thing to initialize a
> > > new path.
> >
> > I'm not sure I follow this argument. What did you think of my idea
> > of renaming libxl__xs_mkdir to libxl__xs_mknode ?
> >
>
> The issue, as I said, is the initial state of the node. If you use
> XS_MKDIR then it is not guaranteed to be empty.
Just to satisfy my curiosity, how can it be non-empty? What else could it
possibly contain, just garbage?
Or maybe this is the behaviour of XS_MKDIR on a path/node which already
exists?
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-11-25 10:43 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 16:18 [RFC PATCH 0/6] libxl: xenstore related changes Paul Durrant
2015-11-11 16:18 ` [RFC PATCH 1/6] libxl: re-name libxl__xs_write() to libxl__xs_printf() Paul Durrant
2015-11-11 16:18 ` [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() for ~/control/shutdown Paul Durrant
2015-11-16 12:55 ` Ian Campbell
2015-11-16 13:16 ` Paul Durrant
2015-11-16 13:42 ` Ian Campbell
2015-11-16 13:45 ` Paul Durrant
2015-11-16 17:20 ` Ian Jackson
2015-11-16 17:22 ` Paul Durrant
2015-11-16 17:30 ` Ian Jackson
2015-11-16 17:33 ` Paul Durrant
2015-11-24 16:34 ` Ian Jackson
2015-11-24 17:20 ` Paul Durrant
2015-11-24 17:24 ` Ian Jackson
2015-11-24 17:28 ` Paul Durrant
2015-11-24 17:38 ` Ian Jackson
2015-11-24 17:41 ` Paul Durrant
2015-11-24 17:44 ` Ian Jackson
2015-11-25 10:42 ` Ian Campbell [this message]
2015-11-25 10:46 ` Paul Durrant
2015-11-25 11:02 ` Ian Campbell
2015-11-25 11:07 ` Paul Durrant
2015-11-25 11:13 ` Ian Jackson
2015-11-25 11:14 ` Paul Durrant
2015-11-25 11:11 ` Ian Jackson
2015-11-11 16:18 ` [RFC PATCH 3/6] libxl: implement control feature checking Paul Durrant
2015-11-16 17:24 ` Ian Jackson
2015-11-11 16:18 ` [RFC PATCH 4/6] libxl: add guest writable xenstore area for driver versions Paul Durrant
2015-11-16 17:26 ` Ian Jackson
2015-11-16 17:26 ` Ian Jackson
2015-11-11 16:18 ` [RFC PATCH 5/6] libxl: add guest writable xenstore area for feature advertisement Paul Durrant
2015-11-16 17:27 ` Ian Jackson
2015-11-11 16:18 ` [RFC PATCH 6/6] libxl: create path for advertisement of network attributes Paul Durrant
2015-11-16 17:29 ` Ian Jackson
2015-11-16 17:31 ` Paul Durrant
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=1448448166.17688.47.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=Stefano.Stabellini@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.