]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blockdev: don't use HDIO_GETGEO
authorPhillip Susi <psusi@ubuntu.com>
Fri, 1 Nov 2013 17:37:05 +0000 (13:37 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 14:09:18 +0000 (15:09 +0100)
commit569d1dac7bc64457aac11163b6a91ce9b41a6715
treea055e2cd912296c3fbcaea6c54b0cd757465fcd2
parent88839459571a3e138bbf707b865d3d84de28e496
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>
disk-utils/blockdev.c