summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorPhillip Susi2013-11-01 18:37:05 +0100
committerKarel Zak2013-11-04 15:09:18 +0100
commit569d1dac7bc64457aac11163b6a91ce9b41a6715 (patch)
treea055e2cd912296c3fbcaea6c54b0cd757465fcd2 /sys-utils/lscpu.c
parentblkdiscard: BLKSSZGET fills in an int, not a uint64 (diff)
downloadkernel-qcow2-util-linux-569d1dac7bc64457aac11163b6a91ce9b41a6715.tar.gz
kernel-qcow2-util-linux-569d1dac7bc64457aac11163b6a91ce9b41a6715.tar.xz
kernel-qcow2-util-linux-569d1dac7bc64457aac11163b6a91ce9b41a6715.zip
blockdev: don't use HDIO_GETGEO
blockdev was still using this depreciated ioctl and that was causing blockdev --report to fail on loop and nbd devices. Switch to reading the partition start from sysfs instead. This also allows it to correctly report > 2^32 sector counts. [kzak@redhat.com: - check sysfs_init() return, - use uint64_t rather than unsigned long long] Signed-off-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
0 files changed, 0 insertions, 0 deletions