From: Christoph Egger <Christoph.Egger@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v4] hotplug/NetBSD: check type of file to attach from params
Date: Fri, 17 Aug 2012 10:25:57 +0200 [thread overview]
Message-ID: <502E0015.2090801@amd.com> (raw)
In-Reply-To: <1345191237.30865.76.camel@zakaz.uk.xensource.com>
On 08/17/12 10:13, Ian Campbell wrote:
> On Tue, 2012-08-14 at 19:09 +0100, Roger Pau Monne wrote:
>> Changes since v2:
> [...]
>> * Replace xenstore_write with xenstore-write in error function.
> [...]
>> error() {
>> echo "$@" >&2
>> - xenstore_write $xpath/hotplug-status error
>> + xenstore-write $xpath/hotplug-status error
>> exit 1
>> }
>
> Why this seemingly unrelated change? I don't see anything in the
> comments on v2 explicitly about it.
xenstore-write exists on NetBSD. xenstore_write does not exist.
Christoph
>
> If it is somehow necessary due to this patch then I think that deserves
> mention in the changelog proper.
>
> Is it because xenstore_write is actually specific to the Linux hotplug
> scripts? (i.e. this function was just plain broken before).
>
> While looking into this I noticed that the Linux equivalent to error()
> is:
> fatal() {
> _xenstore_write "$XENBUS_PATH/hotplug-error" "$*" \
> "$XENBUS_PATH/hotplug-status" error
> log err "$@"
> exit 1
> }
>
> The write of the log message to hotplus-error seems like something worth
> replicating (in a separate patch).
>
> I also wonder how much of this sort of infrastructure could actually be
> shared, but that's for another time.
>
> Ian.
>
>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
prev parent reply other threads:[~2012-08-17 8:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 18:09 [PATCH v4] hotplug/NetBSD: check type of file to attach from params Roger Pau Monne
2012-08-15 8:42 ` Christoph Egger
2012-08-17 8:13 ` Ian Campbell
2012-08-17 8:25 ` Christoph Egger [this message]
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=502E0015.2090801@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=roger.pau@citrix.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).