http://bugzilla.novell.com/show_bug.cgi?id=539521
http://bugzilla.novell.com/show_bug.cgi?id=539521#c31
--- Comment #31 from Petr Uzel 2010-01-20 13:37:01 UTC ---
Simple script:
#!/bin/bash
parted -s $/dev/sdb mkpart primary ext2 0 10M
lsof +c 15 /dev/sdb1
parted -s /dev/sdb rm 1
grep sdb1 /proc/partitions && echo "FAIL"
reveals that the problem is that after the partition is created, udev triggers
hal to probe the device with hald-probe-volume. Later, when parted tries to
remove
the partition, hal has the device still open and thus parted's ioctl results in
EBUSY => /proc/partitions not updated.
udevadm settle isn't enough to serialize access to the disk.
I can't think out anything better then doing simple sleep(1) after each
modification of partition table. Does anybody have better idea?
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.