Bug 1212507
Summary: | sfdisk-disk-geometry fails to display the disk geometry from the partition | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Hu Zhang <huzhan> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | NEW --- | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | jonathan, kzak, leiwang, ptoscano, rjones, virt-maint, wshi |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Hu Zhang
2015-04-16 14:29:19 UTC
Indeed the sfdisk -G option has disappeared in Rawhide. So actually this is a bug in sfdisk. This is not a bug, but expected change. There is no reason to use CHS. Maybe we can add --getgeo to blockdev to have command line interface to the ioctl. I'm going to switch this back to libguestfs. Obviously it's a completely useless API, and CHS has no real relevance to anything (except maybe possibly bootloaders), but we should at least find a way to emulate it. I forgot one thing, the new sfdisk still supports -g, --show-geometry to print disk geometry as returned by kernel ioctl (so ignore my comment #3:-) # sfdisk --show-geometry /dev/sda /dev/sda: 29185 cylinders, 255 heads, 63 sectors/track The original sfdisk also provided -G, --show-pt-geometry to guess the geometry from partition table. This is no more supported by new sfdisk. (Note that the result from kernel and from PT is usually the same.) |