diff options
author | Matthew Booth <mbooth@redhat.com> | 2009-06-29 14:39:27 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2009-06-29 14:39:27 +0100 |
commit | 228b19aa9c28b03b339e8e23fcb46359e3ab617e (patch) | |
tree | 8071541b791f4b6e56f5e0ed28c3e01451bcde68 | |
parent | e492608f2f3809a824cb70ee03ff305964b69dd7 (diff) | |
download | libguestfs-228b19aa9c28b03b339e8e23fcb46359e3ab617e.tar.gz libguestfs-228b19aa9c28b03b339e8e23fcb46359e3ab617e.tar.xz libguestfs-228b19aa9c28b03b339e8e23fcb46359e3ab617e.zip |
Add a comment to device naming heuristic
-rwxr-xr-x | inspector/virt-inspector.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl index bd8de703..b5d62ae8 100755 --- a/inspector/virt-inspector.pl +++ b/inspector/virt-inspector.pl @@ -705,6 +705,12 @@ sub find_filesystem } else { return ($_, $fses{$_}) if exists $fses{$_}; + # The following is to handle the case where an fstab entry specifies a + # specific device rather than its label or uuid, and the libguestfs + # appliance has named the device differently due to the use of a + # different driver. + # This will work as long as the underlying drivers recognise devices in + # the same order. if (m{^/dev/hd(.*)} && exists $fses{"/dev/sd$1"}) { return ("/dev/sd$1", $fses{"/dev/sd$1"}); } |