Changeset 2536


Ignore:
Timestamp:
Jan 8, 2010, 4:49:02 PM (10 years ago)
Author:
bruno
Message:

r3759@localhost: bruno | 2010-01-08 15:18:49 +0100

  • Finally the function ListLvmDrivesAndPartitions? is used, as it creates info parsed by mindi !! So reverting back to filter excluded devices in it
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/analyze-my-lvm

    r2534 r2536  
    226226        if [ -f /etc/multipath.conf ]; then
    227227            i=`GiveMapperOfdm $d`
    228             echo $i
     228            rep=$i
    229229        else
    230             echo $d
    231         fi
     230            rep=$d
     231        fi
     232        skip=0
     233        if [ "$EXCLUDE_DEVS" ] ; then
     234            for ed in $EXCLUDE_DEVS ; do
     235                if  [ "`echo " $rep " | grep " $ed"`" != "" ]; then
     236                    skip=1
     237                    continue
     238                fi
     239            done
     240        fi
     241        if [ $skip -eq 1 ]; then
     242            continue
     243        fi
     244        echo $rep
    232245    done
    233246}
  • branches/2.2.9/mindi/mindi

    r2531 r2536  
    993993            LVM="false"
    994994        fi
     995        # Excluded LVs and GVs are not reported here
    995996        all_partitions=`cat $MINDI_TMP/lvm.res | grep -F ">>>" | cut -d' ' -f2-`
    996997    fi
    997998    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
    998 #    echo "all partitions = $all_partitions" > /dev/stderr
    999999    for i in $IMAGE_DEVS ; do
    10001000        mount | grep -F "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted."
Note: See TracChangeset for help on using the changeset viewer.