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

Petr Uzel petr.uzel at suse.cz
Mon Jan 4 12:05:09 UTC 2010


On Sun, Jan 03, 2010 at 01:30:56PM -0700, Curtis Gedak wrote:
> Note:  This is a repost of my email on Dec 21, 2009 which appears to
> have been held up due to the size of attachments.  As such I am
> reposting with no attachments.
> ------------------------------
> 
> 
> I am seeking help to resolve a intermittent problem when using the
> libparted library.
> 
> 
> 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.


HTH,


-- 
Best regards / s pozdravem

Petr Uzel, openSUSE Boosters Team
-----------------------------------------------------------------
SUSE LINUX, s.r.o.                          e-mail: puzel at suse.cz
Lihovarská 1060/12                          http://www.suse.cz
190 00 Prague 9, CR                             
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-race-call-udevadm-settle.patch
Type: text/x-patch
Size: 730 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20100104/a2662b10/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20100104/a2662b10/attachment.pgp>


More information about the parted-devel mailing list