diff options
author | Mario Preksavec <mario@slackware.hr> | 2017-09-25 11:22:10 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-09-30 07:19:35 +0700 |
commit | 07efe8658c0f31705c451fef8907bde9cc85e8a9 (patch) | |
tree | ce9e2b43b51fcc26a65209894ec52959ec9bea3d /system/drbd-utils/patches | |
parent | 9df5f85c243aaaa259dd0e6345c5e166ecaf5a1f (diff) |
system/drbd-utils: Updated for version 9.1.0.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'system/drbd-utils/patches')
-rw-r--r-- | system/drbd-utils/patches/xen_handle_physical_device_paths.diff | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/system/drbd-utils/patches/xen_handle_physical_device_paths.diff b/system/drbd-utils/patches/xen_handle_physical_device_paths.diff index dd36a4af57854..5419417596979 100644 --- a/system/drbd-utils/patches/xen_handle_physical_device_paths.diff +++ b/system/drbd-utils/patches/xen_handle_physical_device_paths.diff @@ -1,19 +1,19 @@ ---- drbd-utils-8.9.1/scripts/block-drbd.orig 2014-07-04 14:23:23.000000000 +0200 -+++ drbd-utils-8.9.1/scripts/block-drbd 2015-02-16 02:50:39.257522006 +0100 -@@ -251,6 +251,7 @@ - - case $t in - drbd|phy) -+ p=${p/*dev*drbd*by-res\/} # Clean physical device paths - drbd_resource=$p - drbd_role="$(drbdadm role $drbd_resource)" - drbd_lrole="${drbd_role%%/*}" -@@ -280,12 +281,14 @@ +--- drbd-utils-9.1.0/scripts/block-drbd.orig 2017-08-31 14:25:29.000000000 +0200 ++++ drbd-utils-9.1.0/scripts/block-drbd 2017-09-22 21:25:51.309873782 +0200 +@@ -249,6 +249,7 @@ + if [ -n "$t" ] + then + p=$(xenstore_read "$XENBUS_PATH/params") ++ p=${p/*dev*drbd*by-res\/} # Clean physical device paths + p=${p#drbd:} + mode=$(xenstore_read "$XENBUS_PATH/mode") + fi +@@ -284,12 +285,14 @@ case $t in drbd|phy) p=$(xenstore_read "$XENBUS_PATH/params") + p=${p/*dev*drbd*by-res\/} # Clean physical device paths - drbd_resource=$p + drbd_resource=${p#drbd:} drbd_role="$(drbdadm role $drbd_resource)" drbd_lrole="${drbd_role%%/*}" drbd_dev="$(drbdadm sh-dev $drbd_resource)" |