cvs commit: src/sbin/bsdlabel bsdlabel.c

Peter Wemm peter at wemm.org
Thu Aug 28 12:14:10 PDT 2003


Peter Wemm wrote:
> "Poul-Henning Kamp" wrote:
> > In message <200308280815.12638.wes at 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 at 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 at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



More information about the cvs-src mailing list