Commit Graph

36 Commits

Author SHA1 Message Date
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sevan 38721343cf Note which version it appeared in before the rewrite.
Bump date.
2016-09-11 01:03:15 +00:00
christos a451832ee3 kill 1 copy of strtonum. 2015-01-16 20:12:28 +00:00
joerg c87c6690c0 Skip vendor if the string is empty. 2014-11-15 01:52:01 +00:00
wiz c145521aad Add comma in enumeration. 2014-09-30 08:20:29 +00:00
pettai d9141272a7 Add mpt reference, as support for this device was added recently 2014-09-30 08:14:48 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
joerg 8c28cc4858 Simplify 2011-05-25 15:34:19 +00:00
wiz 1319ff4810 Add serial comma. 2011-04-25 22:09:29 +00:00
ahoka daea46045b Fix two problems with argc handling in bioctl(8), which makes
bioctl(8) dump core if expected arguments are not passed in.

Closes PR bin/39946 (patch by Juan RP).
2010-02-20 22:25:54 +00:00
lukem ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
lukem c6144e484f fix -Wsign-compare issues 2009-01-18 00:24:29 +00:00
mhitch 17dec2055b Add ciss(4) to drivers supporting bio(4) and bioctl(8). 2008-05-25 20:09:55 +00:00
wiz 1d5c92c6f8 Various improvements (mdoc, wording, punctuation). 2008-03-16 11:07:23 +00:00
xtraeme c3a503482a Xref cac(4). 2008-03-16 10:01:32 +00:00
christos cc8760f4cb fix example (from anon ymous) 2008-03-03 19:11:45 +00:00
xtraeme 133f451fc4 Typo in previous. 2008-03-03 16:13:34 +00:00
xtraeme 89550ec143 Improve usage() and manpage commands/args. 2008-03-03 16:10:48 +00:00
xtraeme e54494308e - Fix total user specified and free disk size based on the RAID level.
- Adapt for BIOC_SVOL_RAID01 and BIOC_SVOL_RAID10 levels.
2008-03-03 14:55:39 +00:00
xtraeme fd6e8571e1 On RAID 1 volumes and when bv_stripe_size is 0 make it print 'N/A', like:
$ sudo bioctl arcmsr0 show volumes
Volume Status       Size         Device/Label    Level Stripe
=============================================================
     0 Building     234G  sd0 ARC-1210-VOL#00   RAID 1    N/A  97.40% done
     1 Offline      234G  sd1 ARC-1210-VOL#01   RAID 1    N/A
$

Make it prettier the output of "bioctl foo0 show [volumes]" too.
2008-03-01 16:08:41 +00:00
xtraeme 2e0c631507 bio_setstate_consistency: zero out the struct before anything else,
and fix argv argument for strtoul().
2008-02-29 14:33:02 +00:00
xtraeme 3d60ce5de6 Add two examples to create and remove a RAID volume in a supported
controller... such as arcmsr(4) for now.
2008-02-02 03:21:47 +00:00
xtraeme aff55dbf6c New bioctl(8) first appeared on 5.0 not 4.1. 2008-01-11 17:11:42 +00:00
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
xtraeme 10f7c0a4da Add BIOC_SVMIGRATING to bio(4) and bioctl(8) to report if a volume
is migrating currently showing the percentage.

Update arcmsr(4) to report this, like:

$ sudo ./bioctl -h arcmsr0
    Volume Status     Size Device
 arcmsr0 0 Migrating  698G ARC-1210-VOL#00 RAID 5 7% done
	 0 Online     234G 0:0.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 1 Online     234G 0:1.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 2 Online     234G 0:2.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 3 Online     234G 0:3.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-07 11:51:21 +00:00
xtraeme a0c2cca741 There's no need to waste 14 spaces in the third element when the
the human output is requested, align it at most 4 spaces.

I'd also make the human output the default but not sure everybody will
agree...
2007-12-05 16:29:48 +00:00
xtraeme 507f8b0669 - Remove -D flag... it's useless (it was removed in OpenBSD as well).
- Use errx(3) in the appropiate function rather than warn(4) and
  returning EXIT_SUCCESS all the time.
- Remove another case where it checks the device passed string will be
  the same than in bv_dev.
2007-12-05 14:28:13 +00:00
xtraeme 1de866da81 Do not enforce that passed device string will be the same than the
one in bv_dev, which in some drivers like arcmsr(4) it contains the
volume name.

While I'm here, fix the formatting output so that it fits with arcmsr(4),
like:

$ sudo bioctl -h arcmsr0
    Volume Status               Size Device
 arcmsr0 0 Building             698G ARC-1210-VOL#00 RAID5 96% done
         0 Online               234G 0:0.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 1 Online               234G 0:1.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 2 Online               234G 0:2.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 3 Online               234G 0:3.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-05 13:26:04 +00:00
xtraeme 415141bdf8 Mention arcmsr(4) in SEE ALSO. 2007-12-05 12:29:55 +00:00
xtraeme d3f615b78d - Remove the code for softraid, it's unlikely that NetBSD will support
this because we do have a working raidframe(4).
- Miscellaneous cleanups and make the code WARNS=4 compliant.
- Removed all stuff that doesn't apply to NetBSD.
2007-11-04 08:25:04 +00:00
wiz f4a91b1899 Fix Dd argument (use full month names).
Use more markup.
Comment out references to safte(4) and softraid(4), which don't exist in
NetBSD.
Remove trailing whitespace.
Use macros instead of characters for HTML output (replace ">", "<"
with \*[Gt], \*[Lt]).
Sort sections.
2007-09-09 16:13:19 +00:00
bouyer 23448a2818 Fix typo. 2007-09-09 13:30:55 +00:00
xtraeme 04ae3cd1d0 Remove an extra comma. 2007-05-07 11:02:21 +00:00
bouyer 982bad256f Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
2007-05-01 17:18:52 +00:00