summaryrefslogtreecommitdiffstats
path: root/perl/lib
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-06-27 18:14:15 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-06-28 09:48:46 +0100
commit123610f1b5133a9e541a245467f60d065ea96575 (patch)
treeec042ed52f758294a5ea8098930dd7d4860612e1 /perl/lib
parent14bb3b5ae75f41af05ca6d26ebbb5e85aacf2e20 (diff)
downloadlibguestfs-123610f1b5133a9e541a245467f60d065ea96575.tar.gz
libguestfs-123610f1b5133a9e541a245467f60d065ea96575.tar.xz
libguestfs-123610f1b5133a9e541a245467f60d065ea96575.zip
Revert "Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)"
This reverts commit 5cab0d6c807d8a3bf9690375c663d11a10e21656.
Diffstat (limited to 'perl/lib')
-rw-r--r--perl/lib/Sys/Guestfs/Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm
index 188d735a..4f094dea 100644
--- a/perl/lib/Sys/Guestfs/Lib.pm
+++ b/perl/lib/Sys/Guestfs/Lib.pm
@@ -894,7 +894,7 @@ sub _find_filesystem
my $label = $1;
foreach (sort keys %$fses) {
if (exists $fses->{$_}->{label} &&
- $fses->{$_}->{label} =~ /$label/i) {
+ $fses->{$_}->{label} eq $label) {
return ($_, $fses->{$_});
}
}