diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-29 12:20:57 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-29 12:20:57 +0100 |
commit | 759f4369de965f46f4a93b3a75dada050f87e223 (patch) | |
tree | 9f8e897658fe2766264dd5b84206839418ea2fe5 /perl | |
parent | d82d6f0633f63d4a884147b1e85851e96ff8f58d (diff) | |
download | libguestfs-759f4369de965f46f4a93b3a75dada050f87e223.tar.gz libguestfs-759f4369de965f46f4a93b3a75dada050f87e223.tar.xz libguestfs-759f4369de965f46f4a93b3a75dada050f87e223.zip |
perl: Canonicalize /dev/vd* paths in old inspection code (RHBZ#691724).
Diffstat (limited to 'perl')
-rw-r--r-- | perl/lib/Sys/Guestfs/Lib.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 97d0e8ec..95c18a51 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -922,6 +922,9 @@ sub _find_filesystem if (m{^/dev/hd(.*)} && exists $fses->{"/dev/sd$1"}) { return ("/dev/sd$1", $fses->{"/dev/sd$1"}); } + if (m{^/dev/vd(.*)} && exists $fses->{"/dev/sd$1"}) { + return ("/dev/sd$1", $fses->{"/dev/sd$1"}); + } if (m{^/dev/xvd(.*)} && exists $fses->{"/dev/sd$1"}) { return ("/dev/sd$1", $fses->{"/dev/sd$1"}); } |