From 74c3b79e0e518b313eb7a34a743982046170b142 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 27 Jun 2011 18:14:15 +0100 Subject: [PATCH] Revert "Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)" This reverts commit 5cab0d6c807d8a3bf9690375c663d11a10e21656. (cherry picked from commit 123610f1b5133a9e541a245467f60d065ea96575) --- perl/lib/Sys/Guestfs/Lib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 188d735..4f094de 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->{$_}); } } -- 1.8.3.1