Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
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 at 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)