Bug 182553
Summary: | fdisk -l inside xen guest shows no disks | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | darren |
Component: | xen | Assignee: | Rik van Riel <riel> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | bstein, katzj, kzak, sct |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-23 22:17:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
darren
2006-02-23 08:58:39 UTC
The problem is that fdisk is unable to detect "full disk" by HDIO_GETGEO -- the ioctl(HDIO_GETGEO) call returns -1 on /dev/xvda. It seems like kernel bug. The "fdisk /dev/xvda" command works, because it reads information from MBR. And the parted command works, because it uses more simple heuristic base on non-digit at end of the device name (xvda = disk, xvda1 = partition). Maybe I can add to fdisk workaround that will use the "digit heriustic" for devices where ioctl() returns error. IMHO problem should be fixed in the kernel too. Maybe it makes sense that virtual block device hasn't any geomery ;-) xen-3.0.1/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c: case HDIO_GETGEO: /* return ENOSYS to use defaults */ return -ENOSYS; It's seems like really old issue: http://lists.xensource.com/archives/html/xen-devel/2003-12/msg00086.html I'm going to fix fdisk... # ./fdisk -l Disk /dev/xvda: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/xvda1 * 1 261 2096451 83 Linux The patch will be available in util-linux-2.13-0.16. |