[parted-devel] [PATCH] added option --wipesignatures

Brian C. Lane bcl at redhat.com
Wed Jul 28 16:30:23 BST 2021


On Wed, Jul 28, 2021 at 10:37:34AM +0000, Arvin Schnell wrote:
> 
> Hi,
> 
> here is a patch for parted that adds an option to wipe signatures
> during mkpart in the region parted is about to create the new
> partition. The patch was developed at SUSE about five years
> ago. I have now adapted it to master and added a test.
> 
> Without wiping signatures it can happen that old signatures cause
> udev or other system parts to scan the new partition and
> immediately make them busy, e.g. by start an old RAID.
> 
> Other tools have similar options, e.g. fdisk, sfdisk and
> lvcreate.

I'm reluctant to add these kinds of features to parted. As I've said
over the years, let the tools close to the problem do their jobs (eg.
filesystem tools should deal with filesystems). wipefs does a really
good job of wiping signatures, and I'm not sure parted should (or could)
replace it.

Brian

p.s. I saw your other patch, just haven't had time to look at it in more
detail -- probably next week.

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart




More information about the parted-devel mailing list