http://bugzilla.novell.com/show_bug.cgi?id=539521
http://bugzilla.novell.com/show_bug.cgi?id=539521#c10
Jeff Mahoney changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kasievers@novell.com
--- Comment #10 from Jeff Mahoney 2009-11-30 19:30:40 UTC ---
I have a script that fails quickly on this. It creates and destroys a partition
in a loop, failing when a partition exists (or doesn't) when it shouldn't (or
should). It writes out the strace output for each operation and breaks out when
there is a failure for analysis.
----->8-----
parted /dev/sda mkpart logical 87.8GB 120GB
while true; do
strace -o strace.out parted /dev/sda rm 13
if grep sda13 /proc/partitions; then
echo FAIL1
break
fi
strace -o strace.out parted /dev/sda mkpart logical 87.8GB 120GB
if ! grep sda13 /proc/partitions; then
echo FAIL2
break
fi
done
-----8<-----
Here's what I got:
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=1, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=2, devname="", volname=""}}) = 0
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=3, devname="", volname=""}}) = -1 ENXIO (No such device or address)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=4, devname="", volname=""}}) = -1 ENXIO (No such device or address)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=5, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=6, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=7, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=8, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=9, devname="", volname=""}}) = 0
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=10, devname="", volname=""}}) = 0
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=11, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=12, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=13, devname="", volname=""}}) = -1 EBUSY (Device or resource busy)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=14, devname="", volname=""}}) = -1 ENXIO (No such device or address)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=15, devname="", volname=""}}) = -1 ENXIO (No such device or address)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152, {start=0, length=0,
pno=16, devname="", volname=""}}) = -1 ENXIO (No such device or address)
ioctl(3, BLKPG, {BLKPG_ADD_PARTITION, flags=0, datalen=152, {start=139829760,
length=512, pno=2, devname="/dev/sda2", volname=""}}) = 0
ioctl(3, BLKPG, {BLKPG_ADD_PARTITION, flags=0, datalen=152, {start=62446358016,
length=6004422144, pno=9, devname="/dev/sda9", volname=""}}) = 0
ioctl(3, BLKPG, {BLKPG_ADD_PARTITION, flags=0, datalen=152, {start=68450812416,
length=6448587264, pno=10, devname="/dev/sda10", volname=""}}) = 0
--
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.