Changeset 914 in MondoRescue for trunk/mindi/analyze-my-lvm
- Timestamp:
- Nov 2, 2006, 2:00:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/analyze-my-lvm
r863 r914 94 94 allocation=`GetValueFromField $fname "LV Size"` 95 95 [ ! "`echo "$allocation" | grep "[k,m,g]"`" ] && allocation="$allocation"m 96 if echo "$allocation" | grep - x ".*g"> /dev/null 2> /dev/null ; then96 if echo "$allocation" | grep -E '^.*g$' > /dev/null 2> /dev/null ; then 97 97 val=`echo "$allocation" | sed s/g//` 98 98 allocation=`echo "$val" | awk '{c=$1; printf "%d", c*1024;}'`m … … 169 169 170 170 ListLvmDrivesAndPartitions() { 171 $LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'171 $LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}' 172 172 } 173 173
Note:
See TracChangeset
for help on using the changeset viewer.