git: b5ae8f217122 - stable/14 - ccdconfig: remove obsolete references to BSD disklabels

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 22 Mar 2024 13:32:29 UTC
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=b5ae8f217122258764e4c187dbfee712dbe6893e

commit b5ae8f217122258764e4c187dbfee712dbe6893e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-01-24 15:05:09 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-03-22 13:30:31 +0000

    ccdconfig: remove obsolete references to BSD disklabels
    
    ccd(4) previoulsy had knowledge of BSD disklabels, and relied on their
    use on the underlying disks, but this hasn't been the case since 2003
    (commit 0f76d6d822f4).
    
    Remove disklabel references from the man page.
    
    Reviewed by: imp
    Sponsored by: The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D43574
    
    (cherry picked from commit a3ed434a69c903fa58ef001c11c9466166d67c92)
---
 sbin/ccdconfig/ccdconfig.8 | 42 +-----------------------------------------
 1 file changed, 1 insertion(+), 41 deletions(-)

diff --git a/sbin/ccdconfig/ccdconfig.8 b/sbin/ccdconfig/ccdconfig.8
index 2c7460f291f6..4014a36b0771 100644
--- a/sbin/ccdconfig/ccdconfig.8
+++ b/sbin/ccdconfig/ccdconfig.8
@@ -27,7 +27,7 @@
 .\"
 .\" $NetBSD: ccdconfig.8,v 1.4 1996/02/28 01:01:17 thorpej Exp $
 .\"
-.Dd March 17, 2022
+.Dd January 24, 2024
 .Dt CCDCONFIG 8
 .Os
 .Sh NAME
@@ -122,13 +122,6 @@ argument is optional.
 ccd0            16      none    /dev/da2s1 /dev/da3s1
 .Ed
 .Pp
-The component devices need to name partitions of type
-.Li FS_BSDFFS
-(or
-.Dq 4.2BSD
-as shown by
-.Xr disklabel 8 ) .
-.Pp
 If you want to use the
 .Tn Linux
 .Xr md 4
@@ -187,30 +180,6 @@ When you create a new ccd disk you generally want to
 and
 .Xr disklabel 8
 it before doing anything else.
-Once you create the initial label you can
-edit it, adding additional partitions.
-The label itself takes up the first
-16 sectors of the ccd disk.
-If all you are doing is creating file systems
-with newfs, you do not have to worry about this as newfs will skip the
-label area.
-However, if you intend to
-.Xr dd 1
-to or from a ccd partition it is usually a good idea to construct the
-partition such that it does not overlap the label area.
-For example, if
-you have A ccd disk with 10000 sectors you might create a 'd' partition
-with offset 16 and size 9984.
-.Bd -literal
-# disklabel ccd0 > /tmp/disklabel.ccd0
-# disklabel -R ccd0 /tmp/disklabel.ccd0
-# disklabel -e ccd0
-.Ed
-.Pp
-The disklabeling of a ccd disk is usually a one-time affair.
-If you reboot the machine and reconfigure the ccd disk,
-the disklabel you
-had created before will still be there and not require reinitialization.
 Beware that changing any ccd parameters: interleave, flags, or the
 device list making up the ccd disk, will usually destroy any prior
 data on that ccd disk.
@@ -246,12 +215,3 @@ The
 .Nm
 utility first appeared in
 .Nx 1.1 .
-.Sh BUGS
-The initial disklabel returned by
-.Xr ccd 4
-specifies only 3 partitions.
-One needs to change the number of partitions to 8 using
-.Dq Nm disklabel Fl e
-to get the usual
-.Bx
-expectations.