Changeset 2424 in MondoRescue for branches/2.2.9/mindi


Ignore:
Timestamp:
Sep 25, 2009, 6:44:01 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • analyze-my-lvm now removes excluded devices from list coming from mondoarchive
  • new mr_make_devlist_from_pathlist which handle the new bkpinfo->exclude_devs field containing the excluded devices and remove corresponding code from libmondo-cli.c
  • Move DSF code into libmondo-devices.c for coherency, and only the previous function is made externally available
  • Remove dev_to_exclude in libmondo-archive.c which wasn't working correctly and replace it with bkpinfo->exclude_devs
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

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

    r2342 r2424  
    177177
    178178ListLvmDrivesAndPartitions() {
    179     $LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}' > $MINDI_TMP/vg.tmp
    180     if [ -f /etc/multipath.conf ]; then
    181         # If multipath check which type of devidec are given, mpath prefered
    182         for d in `cat  $MINDI_TMP/vg.tmp`; do
     179    for d in `$LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'`; do
     180        # Skip devices excluded, coming from mondoarchive
     181        if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $d "`" ]; then
     182            continue
     183        fi
     184        # If multipath check which type of devides are given, mpath prefered
     185        if [ -f /etc/multipath.conf ]; then
    183186            GiveMapperOfdm $d
    184         done
    185     else
    186         cat $MINDI_TMP/vg.tmp
    187     fi
    188     rm -f $MINDI_TMP/vg.tmp
     187        else
     188            echo $d
     189        fi
     190    done
    189191}
    190192
  • branches/2.2.9/mindi/mindi

    r2422 r2424  
    999999            LVM="false"
    10001000        fi
    1001         all_partitions=`cat $MINDI_TMP/lvm.res | grep -F ">>>" | cut -d' ' -f2-32`
     1001        all_partitions=`cat $MINDI_TMP/lvm.res | grep -F ">>>" | cut -d' ' -f2-`
    10021002    fi
    10031003    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
     
    27652765        LAST_FILELIST_NUMBER=${12}
    27662766        ESTIMATED_TOTAL_NOOF_SLICES=${13}
    2767         EXCLUDE_DEVS="${14}"
     2767        export EXCLUDE_DEVS="${14}"
    27682768        USE_COMP="${15}"
    27692769        USE_LILO="${16}"
Note: See TracChangeset for help on using the changeset viewer.