[parted-devel] [PATCH] arch: Fix race between systemd and parted command

Gulam Mohamed gulam.mohamed at oracle.com
Wed Dec 18 07:08:41 GMT 2024


Hi Brian,



I didn't receive any mail notification as I think I was not subscribed to the mailing list. I realized to this after receiving the following mail after subscribing to the list. After doing search I found your questions on this mail archive:



https://www.mail-archive.com/parted-devel@alioth-lists.debian.net/msg00662.html



Here are the answers to your questions:



- how many and how much delay? I think there's going to be situations where things may still fail. But you also don't want really long delays if there really is a missing device.

[GULAM]: Yes, keeping in mind the fact that if the device is really missing, I kept the delay of around 10ms with around 100 iterations. Can you please suggest?

- It should be implemented for everything that udev touches. Right now this patch only changes one function.

[GULAM]: I am not much aware about the code of parted command. Can you please explore more here so that I can get idea about the parts which udev touches?

- Can we reliable test for this so we can add a test? In my experience, I'd say maybe :)

[GULAM]: I tested this with small shell script. Yes, we can add a test for this. Can you please let me know if there is any test framework where I can add the test?

- I'd also set the retry counter and delay as defines, not calculated variables (although the compiler ought to optimize those).

[GULAM]: Sure, will do this



I am working on this code for the first time.



Thanks for your support.



Regards,

Gulam Mohamed.



> -----Original Message-----

> From: parted-devel <parted-devel-

> bounces+gulam.mohamed=oracle.com at alioth-lists.debian.net<mailto:bounces+gulam.mohamed=oracle.com at alioth-lists.debian.net>> On Behalf

> Of parted-devel-owner at alioth-lists.debian.net<mailto:parted-devel-owner at alioth-lists.debian.net>

> Sent: Monday, November 25, 2024 11:26 PM

> To: Gulam Mohamed <gulam.mohamed at oracle.com<mailto:gulam.mohamed at oracle.com>>

> Subject: Request to mailing list parted-devel rejected

>

> Your request to the parted-devel mailing list

>

>     Posting of your message titled "[PATCH] arch: Fix race between

> systemd and parted command"

>

> has been rejected by the list moderator.  The moderator gave the

> following reason for rejecting your request:

>

> "You already posted this, I asked some questions which have not

> received any response.

>

> Brian"

>

> Any questions or comments should be directed to the list administrator

> at:

>

>     parted-devel-owner at alioth-lists.debian.net<mailto:parted-devel-owner at alioth-lists.debian.net>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/parted-devel/attachments/20241218/f549c1ff/attachment.htm>


More information about the parted-devel mailing list