]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blockdev: fix whole-disk start sector usage
authorKarel Zak <kzak@redhat.com>
Tue, 17 Mar 2015 10:10:20 +0000 (11:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2015 10:18:53 +0000 (12:18 +0200)
commit942409306d8a6b2b1bee628902c6446d19c1cb7e
treec8dbf2c0ef52e5e86cb9c955b8d2b7e0c60c36fb
parent47d9f440dc43463ab7345ee44ab62b25c7ca8078
blockdev: fix whole-disk start sector usage

Since 569d1dac7bc64457aac11163b6a91ce9b41a6715 we read device start
sector from the /sys/block/.../start file. The file exists only for
partitions, for wholedisk is the start of the device always zero.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1202443
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/blockdev.c