From owner-cvs-all Sun Jun 14 15:03:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09077 for cvs-all-outgoing; Sun, 14 Jun 1998 15:03:09 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA09030; Sun, 14 Jun 1998 15:02:43 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id PAA19739; Sun, 14 Jun 1998 15:01:17 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd019737; Sun Jun 14 22:01:07 1998 Date: Sun, 14 Jun 1998 15:01:04 -0700 (PDT) From: Julian Elischer To: Brian Somers cc: sos@FreeBSD.ORG, Julian Elischer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/slice slice_base.c In-Reply-To: <199806142113.WAA27245@awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sun, 14 Jun 1998, Brian Somers wrote: > > In reply to Julian Elischer who wrote: > > > Horrible hack to allow newfs to work again in SLICE kernels. > > > Real fix in the making but requires editing 60+ files. (every damn driver) > > > > Why ?? newfs has worked fine for me ?? > > Oh and it now works on >8G drives, I run DEVFS/SLICE on my main box > > here with 11.5G EIDE disk, no probs... > > dev:~ # newfs /dev/rsd3s1a > write error: 479199 > wtfs: Read-only file system > dev:~ # I'm glad I wasn't dreaming.... > > Hopefully the patch'll fix disklabel too That's a differnt problem here's what I do: disklabel -w -r /dev/rsd0s2 floppy disklabel -r -e /dev/rsd0s2 --edit to taste-- note: a disklabel made on an old system will appear to have wierd offsets when edited under SLICE. (the offsets are real but usually hidden by the old partitionning code). They are absolute offsets from block0. SLICE on hte othe rhand wants releative offsets from the beginning of the slice. However as a hack, On loading the disklabel for use, it subtracts the offset of the 'c' partition from all the other offsets, so that it can cope with old disklabels. there is no code in the old partiotning stuff to do the opposite, and 'add' the offset to all teh partitons if it gets a new disklabel, so it's a one-way transition at the moment. If you are 'dangerously dedicated' then abs == rel so there is no problem :-) julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message