Created attachment 54723 [details] [review] Method 1: BLKRRPART instead of BLKPG for extended partitions Package: udisks Version: 1.0.4-2 (Debian) When creating a logical partition right after creating the extended one, udisks (udisks-helper-create-partition) returns with a "Device or resource busy" error. Forcing the kernel to reread the partition table right after extended partition creation or informing the kernel the extended partition is 1KiB long seems to do the trick. Here is the thread, which led me to the first method: http://www.fedoraforum.org/forum/showthread.php?t=267085 And here is the source of the second method: http://ftp.osuosl.org/pub/linux/utils/util-linux/libblkid-docs/libblkid-Partitions-probing.html#blkid-partition-get-size And a similar bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/666038 This bug has been submitted also as: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652993
Created attachment 54724 [details] [review] Method 2: BLKPG_ADD_PARTITION: extended part's size = 1KiB
Development focus is on udisks 2.0 and I think we do the right thing there otherwise please reopen. Thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.