[Drbd-dev] [PATCH] block-drbd: type is "phy" for drbd backends

Roger Pau Monné roger.pau at citrix.com
Wed Feb 26 16:18:50 CET 2014


I've realized I haven't Cc'ed the drbd developers lists, so adding it now.

On 20/02/14 16:59, Roger Pau Monne wrote:
> 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)"
> 



More information about the drbd-dev mailing list