[Fai-commit] r4640 - people/michael/features/setup_harddisks_2/implementation
andreas at alioth.debian.org
andreas at alioth.debian.org
Fri Oct 19 19:44:27 UTC 2007
Author: andreas
Date: 2007-10-19 19:44:27 +0000 (Fri, 19 Oct 2007)
New Revision: 4640
Modified:
people/michael/features/setup_harddisks_2/implementation/shdd2-volumes
Log:
make it work with empty volume groups
Modified: people/michael/features/setup_harddisks_2/implementation/shdd2-volumes
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/shdd2-volumes 2007-10-19 14:24:43 UTC (rev 4639)
+++ people/michael/features/setup_harddisks_2/implementation/shdd2-volumes 2007-10-19 19:44:27 UTC (rev 4640)
@@ -390,8 +390,11 @@
# parse the output line by line and call vgdisplay -v <VG>
foreach my $line (@vgdisplay_print)
{
- ( $line =~
-/^\s*"(\S+)"\s+\d+\.\d+ MB\s+\[\d+\.\d+ MB\s+used \/ \d+\.\d+ MB\s+free\]$/
+ (
+ # example output with an empty vg:
+ # "my_pv" 267476.00 MB [0 MB used / 267476.00 MB free]
+ $line =~
+/^\s*"(\S+)"\s+\d+\.\d+ MB\s+\[\d+\.*\d* MB\s+used \/ \d+\.\d+ MB\s+free\]$/
) or die "Unexpected vgdisplay output $line";
# the name of the volume group
More information about the Fai-commit
mailing list