[parted-devel] [PATCH V2 1/2] arch: Fix race between systemd and parted command
Brian C. Lane
bcl at redhat.com
Wed Apr 9 19:30:24 BST 2025
On Tue, Apr 08, 2025 at 09:01:18AM -0400, Phillip Susi wrote:
> Gulam Mohamed <gulam.mohamed at oracle.com> writes:
>
> > Gentle reminder for code review for V2 of this patch sent on "Wed, 22 Jan 2025 01:37:29 -0800<https://www.mail-archive.com/search?l=parted-devel@alioth-lists.debian.net&q=date:20250122>".
> >
> > Regards,
> > Gulam Mohamed.
>
> Why is systemd deleting and recreating the partitions? It shouldn't be
> doing that should it? And isn't this a bit of a hacky workaround to the
> race condition rather than actually fixing it? Maybe parted needs to
> take out the bsd lock to tell systemd to keep its hands off of the disk
> until parted is done with it?
>
>
udev can do unexpected things when we open and close the devices :)
I agree that this is a bit of a hack, and I'm reluctant to accept it
without more feedback from not-me :)
I'm not sure about locking it, I'd be worried about that causing
other unexpected problems but that's a cleaner solution than retrying.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
More information about the parted-devel
mailing list