search for: remove_label

Displaying 2 results from an estimated 2 matches for "remove_label".

2025 May 24
0
Bug#1106420: xen-utils-common: block-iscsi script doesn't work when iqn is a prefix of an existing iqn
...t;> parameter. diff -u scripts/block-iscsi.distrib scripts/block-iscsi --- scripts/block-iscsi.distrib 2022-12-29 23:12:25.000000000 +0000 +++ scripts/block-iscsi 2025-05-24 16:24:53.000000000 +0000 @@ -26,6 +26,8 @@ dir=$(dirname "$0") . "$dir/block-common.sh" +LUN=1 + remove_label() { echo $1 | sed "s/^\("$2"\)//" @@ -59,6 +61,9 @@ multipath=*) multipath=$(remove_label $param "multipath=") ;; + lun=*) + LUN=$(remove_label $param "lun=") + ;; esac done...
2013 Apr 24
7
[PATCH] hotplug/Linux: add iscsi block hotplug script
...on on linking described in file LICENSE. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. + +remove_label() +{ + echo $1 | sed "s/^\("$2"\)//" +} + +check_tools() +{ + if ! type iscsiadm > /dev/null 2>&1; then + echo "Unable to find iscsiadm tool" + return 1 + fi + if [ "$multipath" = "y" ] && ! type multipath...