aboutsummaryrefslogtreecommitdiff
path: root/sbin/ccdconfig/ccdconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* Check the return error of set[e][ug]id. While this can never fail in theEitan Adler2012-10-221-3/+6
| | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241848
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-1/+1
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* Remove dead variable assignmentsUlrich Spörlein2010-06-111-2/+1
| | | | | | | | Found by: clang static analyzer Verified by: md5(1) Notes: svn path=/head/; revision=209052
* Make CCD be able to read and write Linux software raids.Martin Cracauer2006-04-131-0/+10
| | | | | | | | | | | | | Supported for raid-0 with <n> disks, raid-1 with 2 disks. Manpages have examples, warnings etc. Test scripts on http://www.cons.org/cracauer/ccdconfig-linux/ Reviewed by: alfred Notes: svn path=/head/; revision=157740
* Garbage collect useless variables.Stefan Farfeleder2005-08-051-2/+0
| | | | Notes: svn path=/head/; revision=148719
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-3/+3
| | | | Notes: svn path=/head/; revision=141611
* Make this WARNS=6 clean by renaming the variable 'err' to 'error'Johan Karlsson2003-08-071-6/+6
| | | | | | | | | in order not to shadow err(3). Tested by: make universe Notes: svn path=/head/; revision=118632
* Be consistent about module names.Poul-Henning Kamp2003-06-091-2/+2
| | | | Notes: svn path=/head/; revision=116126
* GEOMification of CCD.Poul-Henning Kamp2003-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. Notes: svn path=/head/; revision=116111
* Further devilification of CCD:Poul-Henning Kamp2003-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. Notes: svn path=/head/; revision=115731
* Use GEOM OAM api to retrive list of configured ccd devices.Poul-Henning Kamp2003-06-021-0/+19
| | | | | | | Link against libgeom. Notes: svn path=/head/; revision=115730
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+2
| | | | Notes: svn path=/head/; revision=114589
* Don't pick the name out of the devstat member of the ccd softc, it willPoul-Henning Kamp2003-03-061-2/+1
| | | | | | | disappear soon. Exporting the softc in the first place is a mistake. Notes: svn path=/head/; revision=111943
* Fix two errorchecks to check for negative error returns.Poul-Henning Kamp2003-01-181-2/+2
| | | | Notes: svn path=/head/; revision=109472
* Find places to store the previously implicityly passed unit number inPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=109421
* Fix various details so we get to WARNS=3.Poul-Henning Kamp2003-01-171-82/+32
| | | | | | | Center operation on unit number rather than path name. Notes: svn path=/head/; revision=109417
* Remove CCDF_SWAP and CCDF_PARITY. They have never been implemented.Poul-Henning Kamp2003-01-031-2/+0
| | | | Notes: svn path=/head/; revision=108592
* o __P removal.Warner Losh2002-03-181-41/+24
| | | | | | | | o Use ANSI function definitions. o main(int, char *[]) Notes: svn path=/head/; revision=92539
* Removed -M and -N from getopt(3) call as well.Ruslan Ermilov2001-09-111-1/+1
| | | | Notes: svn path=/head/; revision=83329
* Duh! forgot this bit of the NCCD patch.Poul-Henning Kamp2001-09-041-135/+83
| | | | | | | | Submitted by: sobomax Reviewed by: phk Notes: svn path=/head/; revision=82943
* SECURITY: Drop `setgid kmem' bit as early as possible.Ruslan Ermilov2001-08-311-0/+2
| | | | Notes: svn path=/head/; revision=82664
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-2/+3
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Fix world-breakage: warnx("..') --> warnx("...")Alexander Langer2000-08-051-1/+1
| | | | | | | | | Submitted by: Alain Thivillon <Alain.Thivillon@hsc.fr>, Udo Erdelhoff <ue@nathan.ruhr.de> Approved by: green Notes: svn path=/head/; revision=64282
* Don't call warnx() without a format string (localized error messagesKris Kennaway2000-08-051-4/+4
| | | | | | | | | could conceivably cause a crash). Obtained from: OpenBSD Notes: svn path=/head/; revision=64275
* Removal of sys/device.hNick 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. Notes: svn path=/head/; revision=51957
* Silence -WallBill Fumerola1999-09-261-1/+2
| | | | | | | Reviewed by: dillon Notes: svn path=/head/; revision=51690
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* (1) Include linker.h because we use kldload()Bill Fumerola1999-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 Notes: svn path=/head/; revision=48568
* don't use <sys/disk.h>Poul-Henning Kamp1999-05-061-2/+1
| | | | Notes: svn path=/head/; revision=46577
* kldload("ccd") if the ccd module isn't present.Peter Wemm1999-04-051-1/+8
| | | | Notes: svn path=/head/; revision=45329
* Update system to new device statistics code.Justin T. Gibbs1998-09-151-1/+2
| | | | | | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com> mike@smith.net.au (Mike Smith) Notes: svn path=/head/; revision=39228
* Correct use of .Nm, use .Bl/.El in FILES section. Add rcsid. Remove unusedPhilippe Charnier1998-06-041-9/+8
| | | | | | | #includes and make it a little more -Wall-friendly. Notes: svn path=/head/; revision=36628
* Properly drop group privs to open file names specified by the user.Warner Losh1997-12-301-1/+15
| | | | | | | | Submitted by: Niall Smart rotel@indigo.ie Obtained from: OpenBSD (rev 1.7 and 1.8) Notes: svn path=/head/; revision=32116
* Remove __progname. Cosmetic in usage string.Philippe Charnier1997-06-101-12/+8
| | | | Notes: svn path=/head/; revision=26541
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Add mirror and parity flags to list of symbolic names.Satoshi Asami1996-01-301-1/+3
| | | | Notes: svn path=/head/; revision=13762
* Added $Id$.Satoshi Asami1995-12-281-0/+2
| | | | Notes: svn path=/head/; revision=13070
* Make it work for FreeBSD-2.1.Satoshi Asami1995-12-271-21/+8
| | | | Notes: svn path=/head/; revision=13052
* ccdcontrol from NetBSD-1.1. Note it was called "ccdconfig" originally.Satoshi Asami1995-12-271-0/+723
Notes: svn path=/cvs2svn/branches/FREEBSD/; revision=13044