apparently 'diskinfo -t' does not work with disks smaller than about 6.3GB. however, instead of falling gracefully, it does it like this: Seek times: Full stroke: 250 iter in 6.251458 sec = 25.006 msec Half stroke: diskinfo: read error or disk too small for test.: Input/output error How-To-Repeat: dd if=/dev/zero of=test.img bs=512 seek=10000000 count=1 mdconfig -a -t vnode -f test.img diskinfo -t /dev/md0
In message <200507171557.j6HFv6jf005130@www.freebsd.org>, trasz writes: >>Description: > apparently 'diskinfo -t' does not work with disks smaller than about 6.3GB. however, instead of falling gracefully, it does it like this: > A patch is most welcome to make it fail more gracefully. Please do not change the logic of the test however, the idea is to have a constant test-definition. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
> >Description: > apparently 'diskinfo -t' does not work with disks smaller than > about 6.3GB. however, instead of falling gracefully, it does > it like this: Datapoints: da4 2276762112 # mediasize in bytes (2.1G) Half stroke: diskinfo: read error or disk too small for test.: Input/output error da0 4569600000 # mediasize in bytes (4.3G) Short forward: diskinfo: read error or disk too small for test.: Input/output error [ Got farther, note ] da5 9173114880 # mediasize in bytes (8.5G) [ ran through fine ] -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
Still valid?
Works in all supported versions of FreeBSD (2G usb-flash used to verify).