[Libguestfs] [PATCH] inspection: Handle MD devices in fstab

Wanlong Gao gaowanlong at cn.fujitsu.com
Wed Nov 23 08:30:13 UTC 2011


On 11/23/2011 12:31 AM, Matthew Booth wrote:

> 
> This patch fixes inspection when fstab contains devices md devices
> specified as /dev/mdN. The appliance creates these devices without reference to
> the guest's mdadm.conf so, for e.g. /dev/md0 in the guest will often be created
> as /dev/md127 in the appliance. With this patch, we match the uuids of detected
> md devices against uuids specified in mdadm.conf, and map them appropriately
> when we encounter them in fstab.
> 
> The test in this patch also checks that devices specified by their md name, e.g.
> /dev/md/boot, work correctly, although the patch isn't required for devices
> specified this way.


Sorry to say that I can't apply this big patch to do a test.

Thanks
-Wanlong Gao

> ---
>  regressions/Makefile.am              |    1 +
>  regressions/test-inspect-fstab-md.sh |   65 ++++++
>  src/inspect.c                        |   22 ++-
>  src/inspect_fs_unix.c                |  411 ++++++++++++++++++++++++++++++----
>  4 files changed, 456 insertions(+), 43 deletions(-)
>  create mode 100755 regressions/test-inspect-fstab-md.sh
> 
> 
> 
> 
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs





More information about the Libguestfs mailing list