git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e99ac03
)
Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)
author
Douglas Schilling Landgraf
<dougsland@redhat.com>
Sun, 2 Jan 2011 18:53:55 +0000
(18:53 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sun, 2 Jan 2011 18:58:09 +0000
(18:58 +0000)
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
perl/lib/Sys/Guestfs/Lib.pm
patch
|
blob
|
history
diff --git
a/perl/lib/Sys/Guestfs/Lib.pm
b/perl/lib/Sys/Guestfs/Lib.pm
index
4e5c506
..
5265500
100644
(file)
--- 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->{$_});
}
}