From owner-freebsd-current Fri Oct 4 17:11:41 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCF6637B401 for ; Fri, 4 Oct 2002 17:11:39 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E944A43E4A for ; Fri, 4 Oct 2002 17:11:37 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D089B8130F; Sat, 5 Oct 2002 09:41:34 +0930 (CST) Date: Sat, 5 Oct 2002 09:41:34 +0930 From: Greg 'groggy' Lehey To: Peter Wemm Cc: Poul-Henning Kamp , n0go013 , current Subject: Re: [ GEOM tests ] disklabel warnings and vinum drives lost Message-ID: <20021005001134.GO72541@wantadilla.lemis.com> References: <35389.1033748850@critter.freebsd.dk> <20021004211157.378592A896@canning.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021004211157.378592A896@canning.wemm.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, 4 October 2002 at 14:11:57 -0700, Peter Wemm wrote: > Poul-Henning Kamp wrote: >> In message <20021004161119.GA10830@pooh.blahdeblah.demon.co.uk>, n0go013 writ > es >> : >>> On 04.10-15:40, fergus wrote: >>>> On 04.10-14:20, Poul-Henning Kamp wrote: >>>> [...] >>>>> I suspect vinum uses this sysctl to get an inventory of disks in >>>>> the system, so can I get you to try again making sure you have >>>>> rev. 1.20 of src/sys/geom/geom_disk.c ? >>> [...] >>>> i'll let you know the test results when i have some. >>> >>> same results -- can't initialise any drives. i think the example below >>> points more directly to the issue but i'm pretty sure it is because the >>> direct read from the disk does not return a valid disklabel. without a >>> 'vinum' partition entry vinum spews. >> >> I have no idea how vinum does this or something else, but clearly >> something is not done the right way in vinum... > > vinum is so much unbelievable stuff in it. Consider this stuff: > > sys/dev/vinum/vinumio.c: > > /* Find the device */ > if (bcmp(dname, "ad", 2) == 0) /* IDE disk */ > devmajor = 116; You missed the lines in front: /* * Yes, Bruce, I know this is horrible, but we * don't have a root filesystem when we first * try to do this. If you can come up with a * better solution, I'd really like it. I'm * just putting it in now to add ammuntion to * moving the system to devfs. */ > It goes *way* downhill from there. :-( Really? I thought that was the worst of the lot. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message