NetBSD/sbin
xtraeme 481db08b0a Rewrite bioctl(8) and add support for the following features:
- Ability to add/remove hot-spare disks (previously only 'add' was accepted).
- Ability to add/remove pass-through disks.
- Ability to create/remove RAID volumes with optional size, stripe, level,
  member disks and others.
- Ability to start/stop consistency checks in a RAID volume.
- Ability to show only information about physical disks, volumes or both.

Rather than using multiple flags, the utility has been modified to use
the same mode than dkctl(8) (and maybe others), i.e:

$ ./bioctl
usage: bioctl device command [arg [...]]
Available commands:
  show [disks] | [volumes]
  alarm [enable] | [disable] | [silence] | [test]
  blink start | stop [channel:target[.lun]]
  hotspare add | remove channel:target.lun
  passthru add DISKID | remove channel:target.lun
  check start | stop VOLID
  create volume VOLID DISKIDs [SIZE] STRIPE RAID_LEVEL channel:target.lun
  remove volume VOLID channel:target.lun
$

I'll add support for other features soon.
2008-01-02 23:45:06 +00:00
..
amrctl Drop trailing whitespace. 2006-07-23 13:23:12 +00:00
apmlabel Nuke extra comma in Xrefs. 2007-06-25 00:41:50 +00:00
atactl replace instances of __attribute__((__packed__)) with __packed 2007-12-15 16:03:29 +00:00
badsect Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
bim One "const" is enough... 2006-09-04 01:20:44 +00:00
bioctl Rewrite bioctl(8) and add support for the following features: 2008-01-02 23:45:06 +00:00
brconfig Bump date for previous. 2007-01-08 07:22:12 +00:00
ccdconfig Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
cgdconfig simplify and fix the combination code. Hi pooka. 2007-11-11 22:44:12 +00:00
chkconfig Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
clri sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
disklabel Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET 2007-06-05 21:48:46 +00:00
dkctl fix typo 2006-06-17 02:16:19 +00:00
dkscan_bsdlabel Use CPPFLAGS, not COPTS, and ${NETBSDSRCDIR}, not "../..". This 2007-03-02 04:03:17 +00:00
dmesg c99 initializer 2006-10-16 02:43:19 +00:00
drvctl drvctl 4 does not exist. 2007-03-10 20:32:26 +00:00
dump Convert a couple of "(void)&" constructs to volatile. 2006-12-18 20:07:32 +00:00
dump_lfs Call fcntl on the file descriptor *before* closing it. 2006-09-28 23:23:01 +00:00
edlabel use c99 initialisers. 2006-10-23 03:56:38 +00:00
fastboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
fdisk Remove note about the first track being reserved for the BIOS (it's 2007-12-23 10:47:42 +00:00
fsck __attribute -> __attribute__. 2007-09-15 14:35:33 +00:00
fsck_ext2fs Use h2fs32() rather than fs2h32() on host to disk conversion. 2007-12-22 01:19:52 +00:00
fsck_ffs Avoid zero-divides from Anon Ymous 2007-08-22 16:30:28 +00:00
fsck_lfs Make it build with src/sys from the vmlocking2 branch. 2007-12-28 21:44:32 +00:00
fsck_msdos Change mismatch of bytes 11 to 90 to be a warning, not an error, and 2007-03-19 18:30:40 +00:00
fsdb Remove unused ctype.h 2007-03-10 01:16:17 +00:00
fsirand include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
gpt As discussed on tech-userlevel, add NetBSD GPT partition types for 2007-12-28 19:53:09 +00:00
ifconfig Add support for the command list scan in ifconfig (this command permits to scan 2007-12-16 13:49:21 +00:00
init Sort xrefs. 2007-12-15 21:44:15 +00:00
ldconfig Coverity CID 2766: Don't leak memory. 2006-03-26 23:06:45 +00:00
mbrlabel Grammar fix. 2006-01-12 20:37:23 +00:00
mknod Use block minor (from device name) for block devices (not char minor). 2007-07-07 20:11:07 +00:00
modload Replace complicated test for ELFSIZE 64 with #ifdef _LP64 which is 2006-07-08 05:49:01 +00:00
modunload Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount Explain that nosuid,nodev is also needed for non-privileged mounts. 2007-08-01 08:51:24 +00:00
mount_ados Rescue the subjunctive. 2007-07-30 05:00:55 +00:00
mount_cd9660 Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_efs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_ext2fs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_fdesc Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_ffs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_filecore Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_hfs de-__P, ansify prototypes 2007-12-15 20:36:11 +00:00
mount_kernfs kernfs doesn't support getargs, so fail silently instead of making 2007-07-16 17:09:42 +00:00
mount_lfs Don't attempt to start megamaid if run with MNT_GETARGS. 2007-07-17 12:39:24 +00:00
mount_msdos convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
mount_nfs remove an unused variable, nfsproto. 2007-11-30 16:13:15 +00:00
mount_ntfs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
mount_null Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_overlay Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_portal Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_procfs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_ptyfs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_smbfs sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mount_sysvbfs Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_tmpfs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
mount_udf convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
mount_umap Make all mount(2) return value error checks against -1. Some file 2007-07-16 17:06:52 +00:00
mount_union Don't re-explain vfs.generic.usermount & friends here. 2007-08-01 08:52:07 +00:00
newbtconf .An -nosplit 2005-09-30 20:18:12 +00:00
newfs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
newfs_ext2fs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
newfs_lfs Make it build with src/sys from the vmlocking2 branch. 2007-12-28 21:44:32 +00:00
newfs_msdos include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
newfs_sysvbfs typographical fixes 2007-08-04 10:45:36 +00:00
nologin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
pdisk Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
ping Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ping6 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
pppoectl Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
raidctl Fix a minor typo: wd0h was repeated, change second instance to wd1h as is likely intended. 2007-12-14 07:24:01 +00:00
rcorder No need to cast pointers to (char *) when passing to free(3). 2007-03-03 00:09:30 +00:00
reboot Document that reboot(8) passes any arguments to reboot(2) as bootstr. 2007-06-03 22:39:47 +00:00
resize_ffs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
resize_lfs Move lfs_cleanerd from /usr/libexec to /libexec. This is to allow putting 2006-11-11 14:47:27 +00:00
restore Bump date because of last change. 2007-04-30 12:33:13 +00:00
rndctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
route TSEL() is const char* now 2007-02-18 01:48:37 +00:00
routed convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rtsol rtsol: factor out dump.c if -DSMALL (for boot floppy) 2004-01-03 01:40:31 +00:00
savecore tyop: _time_seconf -> _time_second 2007-11-12 16:04:55 +00:00
scan_ffs convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
scsictl Bump date for previous. 2007-01-23 20:34:17 +00:00
setkey Redo previous rework to generate yacc/lex output again and remove generated 2005-12-16 16:25:07 +00:00
shutdown convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
slattach Misc fixes for sl(4) and slattach(8) man pages: 2006-07-08 17:22:14 +00:00
svhlabel When checking for an EFS filesystem just read in the whole superblock, 2007-06-30 02:05:27 +00:00
swapctl Re-phrase description of -A option, as per suggestion from Jukka Salmi 2007-08-02 18:53:46 +00:00
sysctl PR/35304: C J Coleman: Off-by-one nul byte overwrite in mode_bits routine 2006-12-21 22:25:39 +00:00
ttyflags Remove more duplicate #includes, 2007-01-17 21:59:49 +00:00
tunefs Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
umount convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
veriexecctl Whitespace and HTML output fixes. 2007-12-13 22:06:45 +00:00
wdogctl Xref itesio(4). 2007-12-29 06:10:29 +00:00
wsconsctl convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
Makefile Descend into newfs_ext2fs(8). 2007-11-17 16:58:30 +00:00
Makefile.inc WFORMAT is no more... 2006-10-08 17:52:28 +00:00