Changeset 911 in MondoRescue for branches/stable/mindi/analyze-my-lvm
- Timestamp:
- Nov 1, 2006, 7:46:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/analyze-my-lvm
r850 r911 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.