From nobody@FreeBSD.org  Sun Jul 17 15:57:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2997616A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Jul 2005 15:57:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F3AEB43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Jul 2005 15:57:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6HFv6kG005136
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Jul 2005 15:57:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6HFv6jf005130;
	Sun, 17 Jul 2005 15:57:06 GMT
	(envelope-from nobody)
Message-Id: <200507171557.j6HFv6jf005130@www.freebsd.org>
Date: Sun, 17 Jul 2005 15:57:06 GMT
From: trasz <trasz@buziaczek.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'diskinfo -t' fails with disks smaller than about 6.3GB.
X-Send-Pr-Version: www-2.3

>Number:         83619
>Category:       bin
>Synopsis:       'diskinfo -t' fails with disks smaller than about 6.3GB.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 17 16:00:36 GMT 2005
>Closed-Date:    
>Last-Modified:  Sun Jul 17 17:00:20 GMT 2005
>Originator:     trasz
>Release:        6.0-BETA1
>Organization:
>Environment:
FreeBSD traszkan.ds7 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Sun Jul 17 01:48:54 CEST 2005     root@:/usr/obj/usr/src/sys/TRASHCAN  i386

>Description:
      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

>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To: trasz <trasz@buziaczek.pl>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/83619: 'diskinfo -t' fails with disks smaller than about 6.3GB. 
Date: Sun, 17 Jul 2005 18:04:09 +0200

 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.

From: "Matthew D. Fuller" <fullermd@over-yonder.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/83619: 'diskinfo -t' fails with disks smaller than about 6.3GB.
Date: Sun, 17 Jul 2005 11:56:17 -0500

 > >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.
>Unformatted:
