Revision 9e54cad9

View differences:

src/tm_mad/lvm/clone
24 24

  
25 25
SRC=$1
26 26
DST=$2
27
VM_ID=$3
27
VM_ID=$(basename `dirname $DST`)
28 28
DS_ID=$4
29 29

  
30 30
if [ -z "${ONE_LOCATION}" ]; then
src/tm_mad/lvm/delete
43 43
DELETE_CMD=$(cat <<EOF
44 44
    DEV=\$(readlink $DST_PATH)
45 45
    LV=\$(basename \$DEV)
46
    VM=$(echo \$LV|cut -d- -f4)
47
    DISK_ID=$(echo \$LV|cut -d- -f5)
46
    VM=\$(echo \$LV|cut -d- -f4)
47
    DISK_ID=\$(echo \$LV|cut -d- -f5)
48 48

  
49 49
    if [ -n "\$VM" -a -n "\$DISK_ID" ]; then
50 50
        $SUDO $LVREMOVE -f \$DEV

Also available in: Unified diff