Poul-Henning Kamp 0f76d6d822 Finally give CCD the disk mini-layer treatment:
CAUTION:

        Previously CCD would be different from all other disks in
        the system in that there were no "ccd0" device, only a
        "ccd0c" device.

        This is no longer so after this commit.  If you access a
        ccd device through the "/dev/ccd0c" device _and_ have not
        actually put a BSD disklabel on the device, you will have
        to use the name "/dev/ccd0".  If your CCD device contains
        a BSD disklabel there should be no difference.

        You need to recompile ccdconfig(8) using the changed
        src/sys/sys/ccdvar.h for the -g "show me" option to work.

        I have run the regression test I created before I started
        overhauling CCD and it flags no problems, but this code
        is mildly evil, so take care.  If you would cry if you lost
        what's on CCD, make a back before you upgrade.

Create separate cdevsw for the /dev/ccd.ctl device.

Remove the cloning function, the disk-minilayer will do all naming
for us.

Remove the ccdunit and ccdpart functions and carry the softc pointer
in the relevant dev_t's and structures.

Release all memory when a CCD device is unconfigured, previously
the softc would linger behind.

Remove all traces of BSD disklabel fiddling code.

Remove ccdpsize, the disk mini-layer does this for us.

Don't allocate memory with M_WAITOK in ccdstrategy().

Remove boundary checks which the disk mini-layer does for us.

Don't allocate space for more than 2 ccdbuf, RAID was never implemented.

NB: I have not tried to address any of the preexisting ailments of CCD.
2003-01-19 15:00:58 +00:00
..
2002-11-14 05:08:22 +00:00
2003-01-19 13:03:20 +00:00
2002-11-27 17:30:41 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-09-20 18:15:40 +00:00
2003-01-16 23:37:26 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-11 10:28:44 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-06 22:58:55 +00:00
2002-10-18 12:06:01 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-09-23 18:54:32 +00:00
2002-11-07 22:21:38 +00:00
2002-11-14 23:54:55 +00:00
2002-11-28 01:09:29 +00:00
2002-11-14 23:54:55 +00:00
2002-03-23 15:36:13 +00:00
2002-11-14 23:54:55 +00:00
2002-09-21 21:43:49 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-28 01:15:01 +00:00
2002-11-14 23:54:55 +00:00
2003-01-11 04:55:52 +00:00
2002-11-14 23:54:55 +00:00
2003-01-17 18:41:32 +00:00
2003-01-18 01:14:48 +00:00