Changeset 2424 in MondoRescue for branches/2.2.9/mindi/analyze-my-lvm


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
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.