xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xen.org
Cc: Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH 2/3] hotplug/NetBSD: write error message to hotplug-error
Date: Thu, 23 Aug 2012 17:53:45 +0100	[thread overview]
Message-ID: <1345740826-49830-3-git-send-email-roger.pau@citrix.com> (raw)
In-Reply-To: <1345740826-49830-1-git-send-email-roger.pau@citrix.com>

As recommended by Ian Campbell, write the hotplug error to
hotplug-error, just as the Linux hotplug script does.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
---
 tools/hotplug/NetBSD/block |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/hotplug/NetBSD/block b/tools/hotplug/NetBSD/block
index 28135f5..2c10ed7 100644
--- a/tools/hotplug/NetBSD/block
+++ b/tools/hotplug/NetBSD/block
@@ -12,7 +12,8 @@ export PATH
 
 error() {
 	echo "$@" >&2
-	xenstore-write $xpath/hotplug-status error
+	xenstore-write $xpath/hotplug-status error \
+	               $xpath/hotplug-error "$@"
 	exit 1
 }
 	
-- 
1.7.7.5 (Apple Git-26)

  parent reply	other threads:[~2012-08-23 16:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 16:53 [PATCH 0/3] hotplug/NetBSD: remaining block script fixes Roger Pau Monne
2012-08-23 16:53 ` [PATCH 1/3] hotplug/NetBSD: fix xenstore_write usage in error Roger Pau Monne
2012-08-23 16:53 ` Roger Pau Monne [this message]
2012-08-23 16:53 ` [PATCH 3/3] hotplug/NetBSD: check type of file to attach from params Roger Pau Monne
2012-08-30 15:19 ` [PATCH 0/3] hotplug/NetBSD: remaining block script fixes Ian Jackson
2012-08-31  9:42   ` Ian Campbell

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=1345740826-49830-3-git-send-email-roger.pau@citrix.com \
    --to=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).