I have started chipping away at GEOMification of CCD. For obscure technical reasons, I need to get the configuration ioctl for CCD "out of band" instead of "in band".
This commit does that. Old and new kernels worl with both old and new ccdconfig(8) binaries, but there will be whinage and 30 seconds sleeps if they are not in sync as an incentive for people to upgrade. Poul-Henning ------- Forwarded Message From: Poul-Henning Kamp <[EMAIL PROTECTED]> Date: Fri, 17 Jan 2003 06:53:53 -0800 (PST) To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: cvs commit: src/sys/dev/ccd ccd.c src/sbin/ccdconfig ccdconfig.c pathnames.h X-FreeBSD-CVS-Branch: HEAD Sender: [EMAIL PROTECTED] Precedence: bulk phk 2003/01/17 06:53:53 PST Modified files: sys/dev/ccd ccd.c sbin/ccdconfig ccdconfig.c pathnames.h Log: Find places to store the previously implicityly passed unit number in the three configuration ioctls which need a unit number. Add a "ccd.ctl" device for config operations. Implement ioctls on ccd.ctl which rely on the explicityly passed unit numbers. Update ccdconfig to use the new ccd.ctl interface. Add code to the kernel to detect old ccdconfig binaries, and whine about it. Add code to ccdconfig to detect old kernels, and whine about it. These two compatibility measures will be retained only for a limited period since they are in the way of GEOM'ification of ccd. Revision Changes Path 1.26 +18 -18 src/sbin/ccdconfig/ccdconfig.c 1.2 +3 -0 src/sbin/ccdconfig/pathnames.h 1.114 +122 -7 src/sys/dev/ccd/ccd.c ------- End of Forwarded Message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message