On Thu, Jul 20, 2017 at 05:13:34PM +0200, Pino Toscano wrote:
> > +  (* Use vfs-type to check for filesystems on partitions, but
> > +   * ignore MBR partition type 42 used by LDM.
> > +   *)
> > +  let ret =
> > +    ret @
> > +      filter_map (
> > +        fun part ->
> > +          if not has_ldm || not (is_mbr_partition_type_42 part) then
> > +            check_with_vfs_type part
> > +          else
> > +            None                (* ignore type 42 *)
> > +      ) partitions in
> 
> Now this will run is_mbr_partition_type_42 on devices as well, in case
> ldm is available -- I guess it should not be an issue?

Can you explain a bit more?  I don't understand.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to