All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <Ian.Jackson@citrix.com>,
	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: Mon, 16 Nov 2015 13:42:36 +0000	[thread overview]
Message-ID: <1447681356.27871.100.camel@citrix.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F6730AC@AMSPEX01CL01.citrite.net>

On Mon, 2015-11-16 at 13:16 +0000, Paul Durrant wrote:
> > 
> > > +    ret = vasprintf(&s, fmt, ap);
> > >      if (ret == -1) {
> > >          return -1;
> > >      }
> > >      xs_write(ctx->xsh, t, path, s, ret);
> > > +    if (perms)
> > > +        xs_set_permissions(ctx->xsh, t, path, perms, num_perms);
> > 
> > This can fail, can't it? (OTOH so can xs_write, so maybe there is some
> > reason we apparently don't care for such things here?)
> > 
> 
> That's a good point. I would have thought wiring an xs_write() failure
> back through to the caller would be a good idea (and same goes for
> xs_set_permissions, I guess).

git tells me it has been this way since libxl was first committed to the
repo. I can't think of a good reason to squash these errors.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-11-16 13: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 [this message]
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
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=1447681356.27871.100.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.