inspect: Add drive naming hints
authorMatthew Booth <mbooth@redhat.com>
Tue, 18 Oct 2011 10:01:01 +0000 (11:01 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 19 Oct 2011 15:27:38 +0000 (16:27 +0100)
commita1df33eac2c0a0a4fbb256871e491e28dd11ce90
tree13045adc26abf873d6eb3e4b0c310fa154412e3d
parent1f615fddaffd33afc75a582021769583c8f4db4e
inspect: Add drive naming hints

We currently use a heuristic to guess how drive names we find
referenced in the guest map to drive names in the appliance. If this
heuristic fails it can cause inspection to fail.

This change adds a new 'name' option to add_drive_opts, which allows
the user to explicitly pass the name of a drive to libguestfs if it is
known. This change also updates the fstab-parsing inspection code to
use this information if it is available.
generator/generator_actions.ml
regressions/test-inspect-fstab.sh
src/guestfs-internal.h
src/guestfs.c
src/inspect_fs_unix.c
src/launch.c