[parted-devel] [PATCH] added option --wipesignatures
Arvin Schnell
aschnell at suse.com
Thu Jul 29 09:32:32 BST 2021
On Wed, Jul 28, 2021 at 08:30:23AM -0700, Brian C. Lane wrote:
> 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.
In general I agree with the idea that parted should only deal
with the partition table and other tools do the other tasks.
The problem here is that calling wipefs after creating a
partition with parted can fail (it is a race condition) since
e.g. udev has already activated something based on old
signatures.
To demonstrate the problem I have attached a script that fails
when started the second time. Meanwhile there is also the
ANACONDA property in udev but it only disables auto-assembly of
RAIDs. It is also a system-wide property so could have bad side
effects on other processes.
> p.s. I saw your other patch, just haven't had time to look at it in more
> detail -- probably next week.
Thanks, that's fine. I will likely post a few more patches.
ciao
Arvin
--
Arvin Schnell, <aschnell at suse.com>
Senior Software Engineer, Research & Development
SUSE Software Solutions Germany GmbH
Maxfeldstraße 5
90409 Nürnberg
Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fail.sh
Type: application/x-sh
Size: 449 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/parted-devel/attachments/20210729/9adce1f7/attachment.sh>
More information about the parted-devel
mailing list