[parted-devel] Possible Race Condition using test code, libparted, and Fedora 12

Curtis Gedak gedakc at gmail.com
Mon Jan 4 17:54:17 UTC 2010


Petr Uzel wrote:
> On Sun, Jan 03, 2010 at 01:30:56PM -0700, Curtis Gedak wrote:
>   
>> PROBLEM
>>
>> The problem is that on newer GNU/Linux distributions, the libparted
>> library occasionally reports the following error message:
>>
>>      The kernel was unable to re-read the partition table on /dev/sdb
>>      (Device or resource busy).  This means Linux won't know anything
>>      about the modifications you made until you reboot.  You should
>>      reboot your computer before doing anything with /dev/sdb.
>> [ .... ]
>>     
>
> Hi,
>
> I'm not sure, but it might be the same issue as discussed here:
> https://bugzilla.novell.com/show_bug.cgi?id=539521
>
> Comment #16 mentions two commits from parted-git; after posting this
> comment, I found out that these two are not always enough to fix
> the issue, so please add the quick and dirty patch attached to this
> mail.
>
> With these three patches, I was not able to reproduce -EBUSY anymore.
>   
Thank you for the response Petr.

I will try out the two patches plus the one you emailed on a pristine 
copy of parted-1.9.0.  After running my tests I will report back here.

This problem also occurs with parted-2.1 as shown in the following link:
https://bugzilla.gnome.org/show_bug.cgi?id=604298#c14

Regards,
Curtis Gedak



More information about the parted-devel mailing list