Subject: bin/6501: disklabel doesn't handle zone recorded disks the same
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 11/26/1998 10:58:06
>Number:         6501
>Category:       bin
>Synopsis:       disklabel doesn't handle zone recorded disks the same
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 26 10:05:00 1998
>Last-Modified:
>Originator:     Tim Rightnour
>Organization:
Tim Rightnour  -  root@garbled.net
Free Multi-Platform Operating System: http://www.netbsd.org
NetBSD Mailing lists on the web: http://mail-index.netbsd.org/mlist
>Release:        1.3.2/sparc and 1.3I/alpha<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3.2 NetBSD 1.3.2 (POLARIS) #1: Fri Nov 6 07:41:34 MST 1998 root@:/usr/src/sys/arch/i386/compile/POLARIS i386

>Description:

Using the exact same disk, on my alpha and my sparc gives very different
results when disklabeling.  On my sparc, the label below works like a charm,
and uses as much of the zone recorded disk as possible. However when this
label is applied to the same disk, in an alpha, disklabel chokes with:

partition a extends past end of unit.
partition c extends past end of unit.

sparc SS1 running 1.3.2
Alpha 164LX running 1.3I

dmesg:
sd3 at scsibus0 targ 3 lun 0: <IBM, CFA170S       !S, 167A> SCSI2 0/direct fixed
sd3(ncr0:3:0): 10.0 MB/s (100 ns, offset 8)
sd3: 163MB, 2111 cyl, 2 head, 79 sec, 512 bytes/sect x 335270 sectors


disklabel:

CFA170S:\
        :dt=SCSI:se#512:ns#79:nt#2:sc#158:nc#2111:\
        :rm#4000:\
        :pa#334960:oa#158:ta=4.2BSD:ba#8192:fa#1024:\
        :pc#335118:oc#0:tc=unknown:

	
>How-To-Repeat:
make a disklabel in sparc, cut and paste to alpha, move disk, label.
	
>Fix:
Perhaps the sparc is doing something differently, to cope with sun disklabels?
	
>Audit-Trail:
>Unformatted: