From owner-freebsd-current Fri Jan 17 6:58:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22C7A37B401 for ; Fri, 17 Jan 2003 06:58:35 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A14A43F18 for ; Fri, 17 Jan 2003 06:58:33 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h0HEw7K1009315 for ; Fri, 17 Jan 2003 15:58:08 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: current@freebsd.org Subject: HEADSUP: CCD(4) changes. Date: Fri, 17 Jan 2003 15:58:07 +0100 Message-ID: <9314.1042815487@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 Date: Fri, 17 Jan 2003 06:53:53 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ccd ccd.c src/sbin/ccdconfig ccdconfig.c pathnames.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-committers@FreeBSD.org 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message