[Libguestfs] [PATCH 3/5] inspect: Add drive naming hints

Matthew Booth mbooth at redhat.com
Tue Oct 18 12:44:40 UTC 2011


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    |    7 ++++-
 regressions/test-inspect-fstab.sh |   40 ++++++++++++++++++++++++---
 src/guestfs-internal.h            |    1 +
 src/inspect_fs_unix.c             |   55 ++++++++++++++++++++++++-------------
 src/launch.c                      |    4 +++
 5 files changed, 83 insertions(+), 24 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-inspect-Add-drive-naming-hints.patch
Type: text/x-patch
Size: 7164 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20111018/02224e48/attachment.bin>


More information about the Libguestfs mailing list