freebsd-skq/sbin
lulf 14e3eb7296 Import the gvinum work that have been done during and after Summer of Code 2007.
The work have been under testing and fixing since then, and it is mature enough
to be put into HEAD for further testing.

A lot have changed in this time, and here are the most important:
- Gvinum now uses one single workerthread instead of one thread for each
  volume and each plex. The reason for this is that the previous scheme was
  very complex, and was the cause of many of the bugs discovered in gvinum.
  Instead, gvinum now uses one worker thread with an event queue, quite
  similar to what used in gmirror.
- The rebuild/grow/initialize/parity check routines no longer runs in
  separate threads, but are run as regular I/O requests with special flags.
  This made it easier to support mounted growing and parity rebuild.
- Support for growing striped and raid5-plexes, meaning that one can extend the
  volumes for these plex types in addition to the concat type. Also works while
  the volume is mounted.
- Implementation of many of the missing commands from the old vinum:
  attach/detach, start (was partially implemented), stop (was partially
  implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes
  with one plex of these organizations).
- The parity check and rebuild no longer goes between userland/kernel, meaning
  that the gvinum command will not stay and wait forever for the rebuild to
  finish. You can instead watch the status with the list command.
- Many problems with gvinum have been reported since 5.x, and some has been hard
  to fix due to the complicated architecture. Hopefully, it should be more
  stable and better handle edge cases that previously made gvinum crash.
- Failed drives no longer disappears entirely, but now leave behind a dummy
  drive that makes sure the original state is not forgotten in case the system
  is rebooted between drive failures/swaps.
- Update manpage to reflect new commands and extend it with some examples.

Sponsored by:   Google Summer of Code 2007
Mentored by:    le
Tested by:      Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
2009-03-28 17:20:08 +00:00
..
adjkerntz If not compiled for debugging, redirect standard input/output/error 2006-10-23 10:48:19 +00:00
atacontrol Bring SATA revision reporting into conformance with SATA-IO guidelines. 2009-02-23 22:29:38 +00:00
atm Remove netatm from HEAD as it is not MPSAFE and relies on the now removed 2008-05-25 22:11:40 +00:00
badsect
bsdlabel o One more s/gpt/gpart/. 2008-11-05 09:28:30 +00:00
camcontrol Add SCSI READ CAPACITY support to camcontrol. The new 'readcap' subcommand 2007-09-08 20:24:12 +00:00
ccdconfig Fix markup and some typos. 2006-04-14 09:20:25 +00:00
clri Use an intermediate pointer to avoid strict alias check warnings 2007-11-20 01:55:37 +00:00
comcontrol
conscontrol
ddb Apply various fixes: 2008-12-24 11:12:21 +00:00
devd o Spell. Sort .Xrs. 2009-03-08 18:02:30 +00:00
devfs Support for filtering on major device number was removed in rev. 1.7 or 2008-06-27 09:09:50 +00:00
dhclient Support the remaining options listed in dhcp-options(5) and RFC 2132. 2008-10-17 13:28:53 +00:00
dmesg Avoid moving onto a new line while testing if there is a syslog priority 2006-02-27 19:13:47 +00:00
dump Verify that the filesystem being referenced in fstab is indeed a UFS 2009-03-02 03:08:46 +00:00
dumpfs Print disk offets as %jd rather than %lld; I fixed one before committing 2009-01-28 12:08:19 +00:00
dumpon Whitespace and style nits. 2006-10-31 22:36:49 +00:00
fdisk Reword some entries for NTFS and DOS. 2009-01-14 22:05:51 +00:00
fdisk_pc98 Use the common PC98_SID_ACTIVE define instead of a local define. 2009-03-19 12:31:59 +00:00
ffsinfo Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
fsck Add the '-C' "check clean" flag. If the FS is marked clean, skip file 2009-01-30 18:33:05 +00:00
fsck_ffs Update the actions previously attempted by the -D option to make them 2009-02-04 01:02:56 +00:00
fsck_msdosfs Spot two more bugs WRT adherence to the local prompt style. 2008-01-31 13:22:13 +00:00
fsdb Update after function renames. 2006-10-31 22:07:29 +00:00
fsirand
gbde Remove temporary files when there are no longer needed. 2007-04-06 11:16:11 +00:00
geom Man page accompanying r190423 - introduce UFS ID labels. 2009-03-25 20:40:34 +00:00
ggate The signature for a pthread function requires that it 2008-06-26 07:05:35 +00:00
growfs Fix an int overflow on very large file systems. 2007-12-17 08:03:18 +00:00
gvinum Import the gvinum work that have been done during and after Summer of Code 2007. 2009-03-28 17:20:08 +00:00
idmapd .PATH isn't necessary here. 2006-10-15 13:51:49 +00:00
ifconfig add superg+tdma include files for protocol defs needed to do ie parsing 2009-03-26 21:29:38 +00:00
init Static-ify procedures in init(8). 2008-09-27 00:09:10 +00:00
ipf This makefile builds contrib code, so I won't try to fix all the 2007-11-18 03:29:10 +00:00
ipfw Mdoc style, spelling, grammar and wording fixes. This manpage needs more work. 2009-03-19 10:42:07 +00:00
iscontrol Big update to the iSCSI initiator code. Highlights include IPv6 support, 2008-11-25 07:17:11 +00:00
kldconfig Fix malloc size (visible on amd64, with "kldconfig -r"). 2005-11-07 19:22:20 +00:00
kldload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
kldstat Only show the pathname in verbose output as intended in the last commit (r172862). 2008-12-22 19:52:21 +00:00
kldunload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
ldconfig Remove unused reference to objformat.h 2007-01-25 22:38:58 +00:00
mca Markup nit. 2006-09-30 11:12:36 +00:00
md5 Minor markup fix for the r186836 update. 2009-01-06 21:16:42 +00:00
mdconfig Add the possibility to specify "-o force" with "mdconfig -du". 2009-01-10 17:17:18 +00:00
mdmfs -n is used by newfs to tell "do not generate a .snap directory" instead of 2007-05-14 19:23:13 +00:00
mknod In the previous changeset a cast of myminor to u_int were 2007-06-14 03:16:16 +00:00
mksnap_ffs Note that snapshots may cause a panic on the full UFS filesystem. 2008-07-26 13:18:33 +00:00
mount Add a -o mountprog parameter to mount which explicitly allows 2009-03-05 08:57:35 +00:00
mount_autofs
mount_cd9660 Fixing multi-session disc mount by passing the correct "ssector" option 2005-12-19 05:52:37 +00:00
mount_ext2fs Convert mount_ext2fs to a simple program which passes "-o option" to nmount(). 2007-01-28 00:51:01 +00:00
mount_hpfs
mount_msdosfs Add missing qualifier which was missed in the previous commit. 2009-01-05 12:10:22 +00:00
mount_nfs Set NFSMNT_ACDIRMAX flag in fallback_mount() function. 2009-02-06 07:47:53 +00:00
mount_ntfs Tone down warning about the quality of the NTFS VFS module. It appears that 2009-01-20 02:08:21 +00:00
mount_nullfs Add a missing .Pp call. 2006-04-19 19:21:42 +00:00
mount_reiserfs Increase WARNS level to 6. 2005-11-13 01:47:04 +00:00
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_unionfs Added whiteout behavior option. ``-o whiteout=always'' is default mode 2007-10-14 13:55:38 +00:00
natd Check rule numbers against maximum value to avoid rules cleanup due 2008-09-06 17:26:52 +00:00
newfs Don't add a bwrite() symbol, it breaks the build when building newfs 2009-02-12 15:28:15 +00:00
newfs_msdos newfs_msdos: allow to work with media that doesn't have any CHS params 2009-02-27 17:29:48 +00:00
nfsiod
nos-tun
pfctl Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
pflogd
ping - improve readability 2009-01-11 22:36:45 +00:00
ping6 Implement -R support, similar to ping(8)'s -A. 2008-08-27 15:01:23 +00:00
quotacheck Drag this code kicking and screaming into the twenty-first century. 2008-07-02 15:51:59 +00:00
rcorder Document the misleading nature of the REQUIRE line. The patch in 2008-06-09 09:07:58 +00:00
reboot Remove and unused variable. 2009-01-31 13:48:15 +00:00
recoverdisk Save (empty) worklist at successful completion 2009-03-23 11:07:34 +00:00
restore Restore necessary NUL termination of locname. 2009-01-28 16:23:21 +00:00
route Fix regression introduced in rev. 173124: 2009-01-18 11:38:35 +00:00
routed This main goals of this project are: 2008-12-15 06:10:57 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore Apply various fixes: 2008-12-24 11:12:21 +00:00
sconfig Do not set IFF_DEBUG directly from the driver. 2008-06-30 21:18:27 +00:00
setkey o Add missed dot. 2008-09-29 05:31:27 +00:00
shutdown Note that when shutdown is run without options, it will place 2008-12-23 15:00:03 +00:00
slattach
spppcontrol Use a cast that doesn't create a compiler warning. 2007-11-18 00:33:23 +00:00
startslip
sunlabel
swapon Add a -q flag to swapon(8) to suppress informational messages. Use it in 2008-06-23 22:17:08 +00:00
sysctl The sysctl(8) program exits on some errors and only emits warnings on 2008-06-23 22:06:28 +00:00
tunefs o s/filesystem/file system/g. 2007-09-23 16:06:37 +00:00
umount
Makefile add new build knobs and jigger some existing controls to improve 2008-09-21 22:02:26 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00