/[fai]/people/michael/features/setup_harddisks_2/implementation/shdd2-volumes
ViewVC logotype

Diff of /people/michael/features/setup_harddisks_2/implementation/shdd2-volumes

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4639 by michael-guest, Wed Oct 10 06:29:19 2007 UTC revision 4640 by andreas, Fri Oct 19 19:44:27 2007 UTC
# Line 390  sub get_current_lvm Line 390  sub get_current_lvm
390    # parse the output line by line and call vgdisplay -v <VG>    # parse the output line by line and call vgdisplay -v <VG>
391    foreach my $line (@vgdisplay_print)    foreach my $line (@vgdisplay_print)
392    {    {
393      ( $line =~      (
394  /^\s*"(\S+)"\s+\d+\.\d+ MB\s+\[\d+\.\d+ MB\s+used \/ \d+\.\d+ MB\s+free\]$/        # example output with an empty vg:
395          #   "my_pv" 267476.00 MB [0 MB      used / 267476.00 MB free]
396          $line =~
397    /^\s*"(\S+)"\s+\d+\.\d+ MB\s+\[\d+\.*\d* MB\s+used \/ \d+\.\d+ MB\s+free\]$/
398      ) or die "Unexpected vgdisplay output $line";      ) or die "Unexpected vgdisplay output $line";
399    
400      # the name of the volume group      # the name of the volume group

Legend:
Removed from v.4639  
changed lines
  Added in v.4640

  ViewVC Help
Powered by ViewVC 1.1.5