summaryrefslogtreecommitdiffstats
path: root/sbin/ccdconfig/ccdconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* Make this WARNS=6 clean by renaming the variable 'err' to 'error'johan2003-08-071-6/+6
| | | | | | in order not to shadow err(3). Tested by: make universe
* Be consistent about module names.phk2003-06-091-2/+2
|
* GEOMification of CCD.phk2003-06-091-165/+69
| | | | | You need your kernel and ccdconfig(8) to be in sync, particularly if your source tree is on a ccd device.
* Further devilification of CCD:phk2003-06-021-122/+29
| | | | | | | Change the list interface to simplify things. Remove old list ioctls which bogusly exported the softc to userland. Move the softc and associated structures from the public header to the source file.
* Use GEOM OAM api to retrive list of configured ccd devices.phk2003-06-021-0/+19
| | | | Link against libgeom.
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+2
|
* Don't pick the name out of the devstat member of the ccd softc, it willphk2003-03-061-2/+1
| | | | disappear soon. Exporting the softc in the first place is a mistake.
* Fix two errorchecks to check for negative error returns.phk2003-01-181-2/+2
|
* Find places to store the previously implicityly passed unit number inphk2003-01-171-18/+18
| | | | | | | | | | | | | | | | | | | 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.
* Fix various details so we get to WARNS=3.phk2003-01-171-82/+32
| | | | Center operation on unit number rather than path name.
* Remove CCDF_SWAP and CCDF_PARITY. They have never been implemented.phk2003-01-031-2/+0
|
* o __P removal.imp2002-03-181-41/+24
| | | | | o Use ANSI function definitions. o main(int, char *[])
* Removed -M and -N from getopt(3) call as well.ru2001-09-111-1/+1
|
* Duh! forgot this bit of the NCCD patch.phk2001-09-041-135/+83
| | | | | Submitted by: sobomax Reviewed by: phk
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-311-0/+2
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* Fix world-breakage: warnx("..') --> warnx("...")alex2000-08-051-1/+1
| | | | | | Submitted by: Alain Thivillon <Alain.Thivillon@hsc.fr>, Udo Erdelhoff <ue@nathan.ruhr.de> Approved by: green
* Don't call warnx() without a format string (localized error messageskris2000-08-051-4/+4
| | | | | | could conceivably cause a crash). Obtained from: OpenBSD
* Removal of sys/device.hn_hibma1999-10-051-1/+0
| | | | | | | | | | | | | - Move intrhook stuff into kernel.h - Remove all occurrences of #device <device.h> - Add kernel.h were necessary (nowhere) - delete device.h This file contained the structures for cfdata (old style config) and is no longer used. It was included by most drivers. It confuses the remote debugger as the definition of 'struct device' in device.h is found before the one in bus_private.h.
* Silence -Wallbillf1999-09-261-1/+2
| | | | Reviewed by: dillon
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* (1) Include linker.h because we use kldload()billf1999-07-041-3/+5
| | | | | | | (2) Clear up an ambigious, nested if/else (3) Cast a ccio_size to a long and use the correct format identifier. Reviewed by: green
* don't use <sys/disk.h>phk1999-05-061-2/+1
|
* kldload("ccd") if the ccd module isn't present.peter1999-04-051-1/+8
|
* Update system to new device statistics code.gibbs1998-09-151-1/+2
| | | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com> mike@smith.net.au (Mike Smith)
* Correct use of .Nm, use .Bl/.El in FILES section. Add rcsid. Remove unusedcharnier1998-06-041-9/+8
| | | | #includes and make it a little more -Wall-friendly.
* Properly drop group privs to open file names specified by the user.imp1997-12-301-1/+15
| | | | | Submitted by: Niall Smart rotel@indigo.ie Obtained from: OpenBSD (rev 1.7 and 1.8)
* Remove __progname. Cosmetic in usage string.charnier1997-06-101-12/+8
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add mirror and parity flags to list of symbolic names.asami1996-01-301-1/+3
|
* Added $Id$.asami1995-12-281-0/+2
|
* Make it work for FreeBSD-2.1.asami1995-12-271-21/+8
|
* ccdcontrol from NetBSD-1.1. Note it was called "ccdconfig" originally.asami1995-12-271-0/+723
OpenPOWER on IntegriCloud