perl: Canonicalize /dev/vd* paths in old inspection code (RHBZ#691724).
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Mar 2011 11:20:57 +0000 (12:20 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Mar 2011 11:20:57 +0000 (12:20 +0100)
perl/lib/Sys/Guestfs/Lib.pm

index 97d0e8e..95c18a5 100644 (file)
@@ -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"});
         }