Red Hat Bugzilla – Bug 710882
parted in rawhide fails with: parted: arch/linux.c:2800: linux_disk_commit: Assertion `_have_blkpg ()' failed.
Last modified: 2011-06-29 10:55:10 EDT
Description of problem:
When running parted in Rawhide from inside a VM, I see this
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. parted -s -- /dev/vda mklabel msdos
parted: arch/linux.c:2800: linux_disk_commit: Assertion `_have_blkpg ()' failed.
It seems to be related to this patch:
My email machine is switched off at the moment, but when I get
it back I'll send an email to the parted mailing list about it.
Build log that failed:
Just had a look at the code in _have_blkpg, and I wonder
if this has something to do with the Linux kernel version
in case you want to see the version number of Linux kernel
and other packages installed while parted was running.
(In reply to comment #1)
> Just had a look at the code in _have_blkpg, and I wonder
> if this has something to do with the Linux kernel version
> being 3.0?
Looks like parted is expecting the utsname release
string to contain 3 dotted numbers. But in the new
kernel that string is "3.0".
Thanks for the report.
I've posted a patch:
The next kernel RPM should use 3.0.x, so very few users will encounter this problem with parted.
Since I don't have a Rawhide machine to test this on and
the patch *looks* good to me, I pushed it to Rawhide. I will
try and build libguestfs against it, to see if it fixes the
I tested Jim's original patch and it fixed the problem.
Jim has now pushed a modified version of the patch
upstream. Therefore I am closing this bug.
This bug has reappeared in parted-3.0-1.fc16.
Here is the error:
parted -s -- /dev/vda mklabel msdos
parted: arch/linux.c:2805: linux_disk_commit: Assertion `_have_blkpg ()' failed.
I pushed a fix in parted-3.0-2.fc16, and am rebuilding
libguestfs against this. parted binary appears to run
without error now.