Changeset 2531


Ignore:
Timestamp:
Jan 8, 2010, 1:58:43 PM (9 years ago)
Author:
bruno
Message:

r3749@localhost: bruno | 2010-01-08 12:28:35 +0100

  • Still fixing the same issues on device exclusion and LVM
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

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

    r2530 r2531  
    177177
    178178ListLvmDrivesAndPartitions() {
     179    # We get partitions in this loop not devices
    179180    for d in `$LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'`; do
    180181        # Skip devices excluded, coming from mondoarchive
    181         if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $d"`" != "" ]; then
     182        skip=0
     183        if [ "$EXCLUDE_DEVS" ] ; then
     184            for ed in $EXCLUDE_DEVS ; do
     185                if  [ "`echo " $d " | grep " $ed"`" != "" ]; then
     186                    echo "Excluding $d from i-want-my-lvm (due to excluded device $ed)"
     187                    skip=1
     188                    continue
     189                fi
     190            done
     191        fi
     192        if [ $skip -eq 1 ]; then
    182193            continue
    183194        fi
     
    185196        if [ -f /etc/multipath.conf ]; then
    186197            i=`GiveMapperOfdm $d`
    187             if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $i"`" != "" ]; then
     198            skip=0
     199            if [ "$EXCLUDE_DEVS" ] ; then
     200                for ed in $EXCLUDE_DEVS ; do
     201                    if  [ "`echo " $i " | grep " $ed"`" != "" ]; then
     202                        echo "Excluding $i from i-want-my-lvm (due to excluded device $ed)"
     203                        skip=1
     204                        continue
     205                    fi
     206                done
     207            fi
     208            if [ $skip -eq 1 ]; then
    188209                continue
    189210            fi
  • branches/2.2.9/mindi/mindi

    r2530 r2531  
    12691269        skip=0
    12701270        if [ "$EXCLUDE_DEVS" ] ; then
    1271             for d in "$EXCLUDE_DEVS" ; do
     1271            for d in $EXCLUDE_DEVS ; do
    12721272                if  [ "`echo " $current_partition " | grep " $d"`" != "" ]; then
    12731273                    echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE
     1274                    skip=1
    12741275                    continue
    1275                     skip=1
    12761276                fi
    12771277            done
    12781278        fi
    12791279        if [ $skip -eq 1 ]; then
    1280             continue
     1280            continue
    12811281        fi
    12821282        if [ ! "$partition_mountpt" ] ; then
Note: See TracChangeset for help on using the changeset viewer.