From owner-freebsd-hackers Tue Apr 29 03:23:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09169 for hackers-outgoing; Tue, 29 Apr 1997 03:23:45 -0700 (PDT) Received: from bunyip.cc.uq.edu.au (daemon@bunyip.cc.uq.edu.au [130.102.2.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09164 for ; Tue, 29 Apr 1997 03:23:39 -0700 (PDT) Received: (from daemon@localhost) by bunyip.cc.uq.edu.au (8.8.5/8.8.5) id UAA07326 for freebsd-hackers@freebsd.org; Tue, 29 Apr 1997 20:23:23 +1000 Received: by ogre.dtir.qld.gov.au (8.7.5/DEVETIR-E0.3a) id UAA28054; Tue, 29 Apr 1997 20:22:30 +1000 (EST) Date: Tue, 29 Apr 1997 20:22:30 +1000 (EST) From: Stephen McKay Message-Id: <199704291022.UAA28054@ogre.dtir.qld.gov.au> To: freebsd-hackers@freebsd.org cc: syssgm@dtir.qld.gov.au Subject: Re: disklabel -- owner? X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: >> Yep, 'd' is dead (and not missed). 'c' is a bit of a left-over since the >> slice code went in, but it's Traditional. Lots of code knows this. :-) >> Though, with a bit of effort we could get rid of its special purpose. > >If you can point us at this "lots of code", then we can use it >instead of rewriting "disklabel", since the only serious use something >like that would have is as a replacement for disklabel. I really >don't believe there's "lots of code" that knows about 'c'. Or if >there is, it's old, so it also knows about 'd', right? I was thinking of the "lots of code" as a liability, not an asset. I mean that any code from way back (like BSD 4.2 days) will "know" about partition 'c'. Partition 'd' was introduced by 386BSD, and is so recent we can ignore it. To find the "lots of code" I was talking about, I grep'd the source for RAW_PART (which is defined, several times, as 2). Current code that depends on 'c' partition includes at least: lib/libdisk/disk.c lib/libdisk/write_disk.c sbin/ccdconfig/ccdconfig.c sys/dev/ccd/ccd.c sys/dev/vn/vn.c sys/i386/i386/autoconf.c sys/i386/isa/diskslice_machdep.c sys/i386/isa/fd.c sys/i386/isa/matcd/matcd.c sys/i386/isa/mcd.c sys/i386/isa/scd.c sys/i386/isa/wcd.c sys/i386/isa/wd.c sys/kern/subr_diskslice.c sys/pc98/pc98/atcompat_diskslice.c sys/pc98/pc98/diskslice_machdep.c sys/pc98/pc98/fd.c sys/pc98/pc98/wd.c sys/scsi/cd.c sys/scsi/od.c sys/scsi/sd.c sys/sys/disklabel.h usr.sbin/bad144/bad144.c usr.sbin/config/mkswapconf.c I don't know how deeply it is embedded in these, which is why I just called it "lots". :-) If some soul trudges through all these converting partition 'c' knowledge to slice knowledge, I expect a few of us, including Terry, will be pleased. Stephen.