commit | f72b8ff09837d6e495d604b6eef4f4e732193df9 | [log] [tgz] |
---|---|---|
author | Matthias Andree <matthias.andree@gmx.de> | Tue May 30 00:54:49 2006 +0200 |
committer | Matthias Andree <matthias.andree@gmx.de> | Tue May 30 00:54:49 2006 +0200 |
tree | 99d915018979fdf2d9788d2a49d19179a2de34af | |
parent | 604f1a91e56d33831714e51f1a556ddf7cbe5010 [diff] |
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>