Changeset 1236 in MondoRescue for branches/2.2.2/mindi/analyze-my-lvm
- Timestamp:
- Mar 12, 2007, 12:23:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mindi/analyze-my-lvm
r963 r1236 3 3 # $Id$ 4 4 # 5 6 #------------------------- ANALYZE-MY-LVM ----------------------- Hugo Rabson7 # 07/148 # - no longer blank first 4k of /dev/mdX9 #10 # 06/14/200411 # - fixed "n >= 2.00" bug (shell doesn't handle floating points properly)12 # - handle dm_mod as well as dm-mod13 #14 # 02/18/200415 # - nice patch to fix ListAllVolumeGroups() --- J. Richard16 # - patch to support LVM2 by Takeru Komoriya17 #18 # 10/15/200319 # - fixed '-L'-handling to allow for floating-point gigabyte values20 #21 # 01/15/200322 # - patch (LVM) by Brian Borgeson23 #24 # 12/10/200225 # - patch by Benjamin Mampaey26 #27 # 09/05/200228 # - additional patch by Ralph Gruwe29 #30 # 08/30/200231 # - modified by Ralph Gruwe32 #33 # 10/01/200134 # - last modified by Hugo :)35 #------------------------------------------------------------------------------36 5 37 6 Die() { … … 186 155 ListAllLogicalVolumes() { 187 156 if [ $lvmversion = 2 ]; then 188 $LVMCMD lvscan | grep "'" | cut -d"'" -f2189 else 190 lvscan | grep '"' | cut -d'"' -f2157 $LVMCMD lvscan 2> /dev/null | grep "'" | cut -d"'" -f2 158 else 159 lvscan 2> /dev/null | grep '"' | cut -d'"' -f2 191 160 fi 192 161 }
Note:
See TracChangeset
for help on using the changeset viewer.