diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2011-01-02 18:53:55 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-01-02 18:58:09 +0000 |
commit | 5cab0d6c807d8a3bf9690375c663d11a10e21656 (patch) | |
tree | 4d03bbcf3863162346352e2e23c99ec3670191af /perl/lib/Sys | |
parent | e99ac0394acbba2923e361d84511b9646f464585 (diff) | |
download | libguestfs-5cab0d6c807d8a3bf9690375c663d11a10e21656.tar.gz libguestfs-5cab0d6c807d8a3bf9690375c663d11a10e21656.tar.xz libguestfs-5cab0d6c807d8a3bf9690375c663d11a10e21656.zip |
Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)
Hi,
This is a purpose patch to avoid the message: unknown filesystem label
SWAP-sda2.
Instead of validate the label with 'eq', use '=~' and /$label/i.
https://bugzilla.redhat.com/show_bug.cgi?id=666578
Thanks
Douglas
Diffstat (limited to 'perl/lib/Sys')
-rw-r--r-- | perl/lib/Sys/Guestfs/Lib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 4e5c5066..52655003 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -893,7 +893,7 @@ sub _find_filesystem my $label = $1; foreach (sort keys %$fses) { if (exists $fses->{$_}->{label} && - $fses->{$_}->{label} eq $label) { + $fses->{$_}->{label} =~ /$label/i) { return ($_, $fses->{$_}); } } |