summaryrefslogtreecommitdiff
path: root/sbin/bioctl/bioctl.c
AgeCommit message (Collapse)Author
2007-09-08make bioctl behave like a unix program and exit 1 on errorHenning Brauer
ok deraadt, silence dlg marco
2007-07-11put -q in the right place;Jason McIntyre
2007-07-10implement -q to query a scsi disk for its inquiry data (vendor, model,Henning Brauer
revision, serial #) and print that. when the default bio ioctl fails with ENOTTY because the given disk is not on a bio-supported raid controller, fall back to -q. use strnvis to sanitize inquiry data so it is safe to use in scripts. ok deraadt
2007-06-04document -C option of bioctlTodd T. Fries
use a simpler form of options with variable number of args suggestions jmc@ ok marco@
2007-06-01support for softraid level 'c'.Ted Unangst
2007-05-31typo, ok tedu@Alexander von Gernler
2007-05-28Make disk assembly smarter and add two qualifiers to it:Marco Peereboom
1) noautoassemble; when set the softraid volume will not be assembled during autoconf. 2) force; when set it will overwrite metadata on disk While writing this I ran into 3 bugs that were fixed along the way 1) bcopy in sr_read_meta was copying data to the wrong pointer 2) in sr_read_meta the wrong metadata was coppied into the chunk 3) sr_free_discipline was freing a pointer that wasn't malloc'd ok dlg
2007-05-23Remove all vnode dependencies so that we can bootstrap softraid volumes.Marco Peereboom
Code from tedu. Replace all kernel string magic with dev_t passed in from bioctl. Suggestion from beck and tedu. Help from miod. Fix chunk crc. ok tedu
2007-04-23remove -D stuff which is just silly, imagine if ls had a debug mode; ok marcoTheo de Raadt
2007-03-20further clean usage(); ok toddJason McIntyre
2007-03-20sync usage() w/ synopsis;Jason McIntyre
2007-03-20document softraid and bioctl creation of softraidTodd T. Fries
ok marco@, help from jmc@
2007-03-19Add a new device that provides a framework for IO manipulation. A very basicMarco Peereboom
implementation of a RAID 1 is included in this but it does not deal with failures yet. Disabled in GENERIC. Suggestions from and ok beck@ miod@ krw@ dlg@ deraadt@
2006-08-28proper justify the size caption to match numbers justification; deraadt@ okMichael Shalayeff
2006-08-28Except I disagree strongly, and I was not askedTheo de Raadt
2006-08-27proper justify the size caption to match numbers justification; krw@ okMichael Shalayeff
2006-05-26Assign locator.target to blink structure.Marco Peereboom
2006-05-25handle Online/Scrub SD state for marcoTheo de Raadt
2006-05-25more room for seconds stringTheo de Raadt
2006-05-25print seconds of progress, if driver makes it available; ok marcoTheo de Raadt
2006-05-25handle new volume status, and print % if known; ok marcoTheo de Raadt
2006-05-07Add a little debug to test BIOCINQ primitive.Marco Peereboom
2005-08-23disable -B support for now; ok dlgTheo de Raadt
2005-08-23repair warnx() misusesTheo de Raadt
2005-08-21try to blink the device given on the command line before walking inquiriesDavid Gwynne
on the device looking for an enclosure. this allows bioctl -b 0:0 ses0 to work as well as bioctl -b 0:0 sd0/ami0. ok deraadt@
2005-08-18add support to stop blinking (-u) or use the alarm LED instead (-B)Theo de Raadt
2005-08-18better diagnostics in case of bad arguments; ok dlgTheo de Raadt
2005-08-18rework the addressing for blinking to make it like the hotsparesDavid Gwynne
help from and ok deraadt@
2005-08-18a step towards where dlg is heading next + knfTheo de Raadt
2005-08-18very basic blink support.David Gwynne
some manpage tweaks from jmc@
2005-08-18Add "create hot spare" ok dlg@Marco Peereboom
2005-08-17Add support for unused disks.Marco Peereboom
Fix SCSI string madness (by deraadt). Add some debug statements in bioctl.
2005-08-15if bv_level is -1, it is a hot spare; ok marcoTheo de Raadt
2005-08-09align a columnTheo de Raadt
2005-08-09verbose output optionTheo de Raadt
2005-08-08print information about ses/safte for each device; ok marcoTheo de Raadt
2005-08-08print out target as channel:target.lunTheo de Raadt
2005-08-08lots of cleanup, print lots of information based on new linkages betweenTheo de Raadt
devices provided by marco; ok marco
2005-08-05sync usage to man pageTheo de Raadt
2005-08-05if no command specified, assume -iTheo de Raadt
2005-08-03Fix usage.Marco Peereboom
2005-08-03be more sure about what is a drive vs controller; ok marcoTheo de Raadt
2005-08-03various cleanups, the way i like it, ok marcoTheo de Raadt
2005-08-02add -a properly to SYNOPSIS; sync usage();Jason McIntyre
ok marco@
2005-08-01Add alarm support.Marco Peereboom
2005-07-29Redo bioctl because initial implementation was too complex.Marco Peereboom
tested and ok dlg@ beck@ get it in @deraadt
2005-07-18revert marcos bio changes, mickey not okDavid Gwynne
2005-07-18tweaks;Jason McIntyre
ok marco@
2005-07-18Fix online help.Marco Peereboom
2005-07-18Kill initial implementation because it sucked. It was far too complex the newMarco Peereboom
paradigm is to virtualize the operations. Using physical data is really only necessary on low end hardware or by advanced users. For now only support the inquiry operation. ok dlg@