xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: drbd-user@lists.linbit.com, xen-devel@lists.xenproject.org
Cc: Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH] block-drbd: type is "phy" for drbd backends
Date: Thu, 20 Feb 2014 16:59:36 +0100	[thread overview]
Message-ID: <1392911976-37506-1-git-send-email-roger.pau@citrix.com> (raw)

The type written to xenstore by libxl when attaching a drbd backend is
"phy", not "drbd", so handle this case also.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
 scripts/block-drbd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/block-drbd b/scripts/block-drbd
index 5563ccb..975802b 100755
--- a/scripts/block-drbd
+++ b/scripts/block-drbd
@@ -250,7 +250,7 @@ case "$command" in
     fi
 
     case $t in 
-      drbd)
+      drbd|phy)
         drbd_resource=$p
         drbd_role="$(drbdadm role $drbd_resource)"
         drbd_lrole="${drbd_role%%/*}"
@@ -278,7 +278,7 @@ case "$command" in
 
   remove)
     case $t in 
-      drbd)
+      drbd|phy)
         p=$(xenstore_read "$XENBUS_PATH/params")
         drbd_resource=$p
         drbd_role="$(drbdadm role $drbd_resource)"
-- 
1.7.7.5 (Apple Git-26)


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

             reply	other threads:[~2014-02-20 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 15:59 Roger Pau Monne [this message]
2014-02-26 15:18 ` [PATCH] block-drbd: type is "phy" for drbd backends Roger Pau Monné
2014-02-26 16:30   ` [Drbd-dev] " Lars Ellenberg
     [not found]   ` <20140226163036.GE3154@soda.linbit>
2014-02-26 17:01     ` Roger Pau Monné
2014-04-01  7:12       ` Roger Pau Monné
2014-04-07 14:31         ` Lars Ellenberg
     [not found]         ` <20140407143132.GG2209@soda.linbit>
2014-04-07 14:40           ` Roger Pau Monné

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=1392911976-37506-1-git-send-email-roger.pau@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=drbd-user@lists.linbit.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 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).