From owner-freebsd-current Thu Dec 21 03:28:11 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA03692 for current-outgoing; Thu, 21 Dec 1995 03:28:11 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id DAA03483 for ; Thu, 21 Dec 1995 03:23:29 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id MAA12045 for ; Thu, 21 Dec 1995 12:21:24 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id MAA10248 for freebsd-current@FreeBSD.org; Thu, 21 Dec 1995 12:21:24 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id JAA14524 for freebsd-current@FreeBSD.org; Thu, 21 Dec 1995 09:51:42 +0100 From: J Wunsch Message-Id: <199512210851.JAA14524@uriah.heep.sax.de> Subject: Re: disklabel -r -w rz2 rzxx To: freebsd-current@FreeBSD.org Date: Thu, 21 Dec 1995 09:51:42 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199512210805.TAA09744@godzilla.zeta.org.au> from "Bruce Evans" at Dec 21, 95 07:05:57 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@FreeBSD.org Precedence: bulk As Bruce Evans wrote: > > >I thought of this being a neat idea, and actually all we need in order > >to implement it would be that ioctl(DIOCGDINFO) would fill in as much > >parameters for an unlabelled disk as the driver does already know. > > It already does. The known parameters are available for the whole > drive and can easily be used for dangerously dedicated drives, e.g., > > disklabel /dev/rsd0 | > sed -e 's/^rpm: 0$/rpm: 3600/' -e 's/^interleave: 0$/interleave: 1/' | > disklabel -R -r /dev/rsd0 /dev/stdin > > Here the sed commands substitute some of the unknown values with > possibly-bogus but working values. Hmm, interesting. For which devices? Short of a real empty disk to test with, i've only been playing with vn devices :), and all i've got was: Dec 21 00:19:43 uriah /kernel: vn0: invalid primary partition table: no magic Dec 21 00:20:17 uriah /kernel: vn0: invalid primary partition table: no magic Dec 21 00:20:17 uriah /kernel: vn0: invalid primary partition table: no magic Dec 21 00:21:51 uriah last message repeated 5 times Dec 21 00:21:51 uriah last message repeated 5 times (I would have played with floppies, too, but i realized that they are not even supposed to work. Though it's probably not a big deal to make them work.) > Of course, the fact that this works means that the label isn't necessary > except for its partitioning function. That's what i'm expecting. > Handling slices is more complicated. Apart from DIOCGDINFO only being > implemented for slices that already have a BSD label, it is important > for the slices to be allocated before the labels. How does digital > handle the extra layer of complications? ;-) What's a slice? :-) :-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)