On Fri, Nov 13, 2009 at 01:49:24PM +1100, Neil Brown wrote:
Is there a good library that we could use? libparted might be a possibility, but it seems rather over-weight. /lib/libparted-1.9.so.12.0.0 is larger than /sbin/mdadm !!! Are there any other libraries for reading different partition tables? I guess we can open-code it if we have to but I'd be happy if another solution could be found.
i don't think so, but there are two tools partx from util-linux kpartix from multipath-tools (which is based on the former) so we could either grab code from those or just invoke partx -l (i believe every distro installs util-linux by default) L. -- Luca Berra -- bluca@xxxxxxxxxx Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html