Changeset 3029 for branches/3.0/mindi


Ignore:
Timestamp:
Aug 21, 2012, 3:11:04 PM (7 years ago)
Author:
bruno
Message:
  • Fix an issue in analyzing dm devices, when habing more than 10 LVs, the sort wasn't respecting the numerical order, and at restore time, the LVs were not created back correctly (11 coming before 2) (Martin Kitka/Didier? Diaz)
File:
1 edited

Legend:

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

    r3016 r3029  
    290290
    291291ListAllLogicalVolumesSortedBydm() {
    292                 rm -f $MINDI_TMP/sorteddm
    293         for d in `ListAllLogicalVolumes` ; do
    294             dm=`mindi --nolog --readalllink $d 2> /dev/null | tail -1`
    295             echo "$dm|$d" >> $MINDI_TMP/sorteddm
    296         done
    297         if [ -f $MINDI_TMP/sorteddm ]; then
    298             sort -t'|' $MINDI_TMP/sorteddm | cut -d'|' -f2
    299         fi
     292    rm -f $MINDI_TMP/sorteddm
     293    for d in `ListAllLogicalVolumes` ; do
     294        dm=`mindi --nolog --readalllink $d 2> /dev/null | tail -1`
     295        echo "$dm|$d" >> $MINDI_TMP/sorteddm
     296    done
     297    if [ -f $MINDI_TMP/sorteddm ]; then
     298        sort -t'|' -n $MINDI_TMP/sorteddm | cut -d'|' -f2
     299    fi
    300300}
    301301
Note: See TracChangeset for help on using the changeset viewer.