Whamcloud - gitweb
Implement DIOCGMEDIASIZE for FreeBSD's GEOM.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 29 May 2006 22:54:49 +0000 (00:54 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 29 May 2006 22:54:49 +0000 (00:54 +0200)
commitf72b8ff09837d6e495d604b6eef4f4e732193df9
tree99d915018979fdf2d9788d2a49d19179a2de34af
parent604f1a91e56d33831714e51f1a556ddf7cbe5010
Implement DIOCGMEDIASIZE for FreeBSD's GEOM.

Try DIOCGMEDIASIZE ioctl() if defined, to obtain
the media size on FreeBSD 5.0 and newer.
The binary search fallback doesn't work, as FreeBSD
block devices are unbuffered and refuse reads below
the block size.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
lib/blkid/getsize.c