History log of /freebsd-10.1-release/sbin/ccdconfig/ccdconfig.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 241848 22-Oct-2012 eadler

Check the return error of set[e][ug]id. While this can never fail in the
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


# 227081 04-Nov-2011 ed

Add missing static keywords for global variables to tools in sbin/.

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.


# 209052 11-Jun-2010 uqs

Remove dead variable assignments

Found by: clang static analyzer
Verified by: md5(1)


# 157740 13-Apr-2006 cracauer

Make CCD be able to read and write Linux software raids.

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


# 148719 05-Aug-2005 stefanf

Garbage collect useless variables.


# 141611 10-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 118632 07-Aug-2003 johan

Make this WARNS=6 clean by renaming the variable 'err' to 'error'
in order not to shadow err(3).

Tested by: make universe


# 116126 09-Jun-2003 phk

Be consistent about module names.


# 116111 09-Jun-2003 phk

GEOMification of CCD.

You need your kernel and ccdconfig(8) to be in sync, particularly if your
source tree is on a ccd device.


# 115731 02-Jun-2003 phk

Further devilification of CCD:

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.


# 115730 02-Jun-2003 phk

Use GEOM OAM api to retrive list of configured ccd devices.

Link against libgeom.


# 114589 03-May-2003 obrien

Use __FBSDID() to quiet GCC 3.3 warnings.


# 111943 06-Mar-2003 phk

Don't pick the name out of the devstat member of the ccd softc, it will
disappear soon. Exporting the softc in the first place is a mistake.


# 109472 18-Jan-2003 phk

Fix two errorchecks to check for negative error returns.


# 109421 17-Jan-2003 phk

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.


# 109417 17-Jan-2003 phk

Fix various details so we get to WARNS=3.
Center operation on unit number rather than path name.


# 108592 03-Jan-2003 phk

Remove CCDF_SWAP and CCDF_PARITY. They have never been implemented.


# 92539 18-Mar-2002 imp

o __P removal.
o Use ANSI function definitions.
o main(int, char *[])


# 83329 11-Sep-2001 ru

Removed -M and -N from getopt(3) call as well.


# 82943 04-Sep-2001 phk

Duh! forgot this bit of the NCCD patch.

Submitted by: sobomax
Reviewed by: phk


# 82664 31-Aug-2001 ru

SECURITY: Drop `setgid kmem' bit as early as possible.


# 69793 09-Dec-2000 obrien

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


# 64282 05-Aug-2000 alex

Fix world-breakage: warnx("..') --> warnx("...")

Submitted by: Alain Thivillon <Alain.Thivillon@hsc.fr>,
Udo Erdelhoff <ue@nathan.ruhr.de>
Approved by: green


# 64275 05-Aug-2000 kris

Don't call warnx() without a format string (localized error messages
could conceivably cause a crash).

Obtained from: OpenBSD


# 51957 05-Oct-1999 n_hibma

Removal of sys/device.h

- 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.


# 51690 26-Sep-1999 billf

Silence -Wall

Reviewed by: dillon


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48568 04-Jul-1999 billf

(1) Include linker.h because we use kldload()
(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


# 46577 06-May-1999 phk

don't use <sys/disk.h>


# 45329 05-Apr-1999 peter

kldload("ccd") if the ccd module isn't present.


# 39228 15-Sep-1998 gibbs

Update system to new device statistics code.

Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
mike@smith.net.au (Mike Smith)


# 36628 04-Jun-1998 charnier

Correct use of .Nm, use .Bl/.El in FILES section. Add rcsid. Remove unused
#includes and make it a little more -Wall-friendly.


# 32116 30-Dec-1997 imp

Properly drop group privs to open file names specified by the user.
Submitted by: Niall Smart rotel@indigo.ie
Obtained from: OpenBSD (rev 1.7 and 1.8)


# 26541 10-Jun-1997 charnier

Remove __progname. Cosmetic in usage string.


# 22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 13762 30-Jan-1996 asami

Add mirror and parity flags to list of symbolic names.


# 13070 27-Dec-1995 asami

Added $Id$.


# 13052 27-Dec-1995 asami

Make it work for FreeBSD-2.1.


# 13045 27-Dec-1995 asami

This commit was generated by cvs2svn to compensate for changes in r13044,
which included commits to RCS files with non-trunk default branches.


# 13044 27-Dec-1995 asami

ccdcontrol from NetBSD-1.1. Note it was called "ccdconfig" originally.