On Tue, Nov 20, 2012 at 04:07:37PM +0100, Milan Broz wrote: > On 11/20/2012 03:41 PM, Richard W.M. Jones wrote: > > > In fact the problem case is where you try to wipe a device which > > contains a volume groups and a logical volume; note the LVs don't > > contain filesystems, and nothing is mounted. > > Well there is a problem. While you can wipe part table, kernel will > reload it and destroy all obsolete partitions. > There should not be problem if it contains lvm, only if it contains > active LVs mapped. > > If there are active device-mapper devices (either created by kpartx, > lvm, crypt, ...) you will lost metadata and cannot remove them > using standard tools, you are forced to do it with dmsetup later. I guess this is not a problem for libguestfs (virt-format in this case), since we throw away the appliance completely after each run. We only care about what gets written to the disk. But yes, I see your point. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html