Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 12:14:08 -0700
From:      Peter Wemm <peter@wemm.org>
To:        "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/bsdlabel bsdlabel.c 
Message-ID:  <20030828191408.65D172A7EA@canning.wemm.org>
In-Reply-To: <20030828185445.1A96C2A7EA@canning.wemm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote:
> "Poul-Henning Kamp" wrote:
> > In message <200308280815.12638.wes@softweyr.com>, Wes Peters writes:
> > 
> > >If I understand this correctly, this is a nice little change.  You're 
> > >trying to discourage people from just using the 'c' partition *as a 
> > >filesystem*, right?  
> > 
> > yes.
> 
> I'd like to see this go further and have the magic 'c' partition go away.
> eg: instead of using ad0c or ad0s1c, use ad0 or ad0s1 as the 'whole
> partition'.    Having ad0c and ad0 as pseudo aliases for each other is a
> waste of a disklabel partition IMHO.

Before this turns into another 'thread from hell', let me clarify that.
I'm suggesting:
1) remove any remaining knowledge of the magic 'c' partition in utilities
2) remove any assumptions that the 'c' partition even exists
3) stop creating the 'c' partition on new disklabels

This will not break existing disklabels and wont break existing systems
that have the 'c' partition in use etc.  I'm suggesting just completing
the de-magicification of it.  That is, assuming it isn't already done.

eg: things like this:

peter@overcee[12:12pm]/home/src/tools/regression/usr.bin/make-100# bsdlabel da0s1
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144        0    4.2BSD     1024  8192    16 
  b:  2097152   262144      swap                    
  c: 35840952        0    unused        0     0         # "raw" part, don't edit
  e:  4194304  2359296    4.2BSD     1024  8192    16 
  f:   409600  6553600    4.2BSD     1024  8192    16 
  g:   262144  6963200    4.2BSD     1024  8192    16 
  h: 28615608  7225344    4.2BSD     1024  8192    16 

.. get rid of the "don't edit" part.  Make it Just Another Partition.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030828191408.65D172A7EA>