Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 1998 15:01:04 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        Brian Somers <brian@awfulhak.org>
Cc:        sos@FreeBSD.ORG, Julian Elischer <julian@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/dev/slice slice_base.c 
Message-ID:  <Pine.BSF.3.95.980614144738.6528B-100000@current1.whistle.com>
In-Reply-To: <199806142113.WAA27245@awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980614144738.6528B-100000>