Commit Graph

8 Commits

Author SHA1 Message Date
cegger bc33dc599e struct device * -> device_t, no functional changes intended. 2009-05-07 12:15:33 +00:00
xtraeme 0be3e346a7 Add definitions to specify RAID 0+1/1+0 levels. 2008-03-03 13:43:19 +00:00
xtraeme 59a09b45c9 Improve the bio(4) API for incoming changes to arcmsr(4) (and perhaps
other drivers in the future):

- Added BIOC_SVCHECKING to the BIOCVOL ioctl, to know if a volume is
  running a consistency check.
- Added three more volume levels for the BIOCVOL ioctl.
- Added BIOC_SDPASSTHRU to the BIOCDISK ioctl, to know if a disk is
  in pass-through mode.
- Added BIOCDISK_NOVOL; it's used with the same reason than BIOCDISK,
  but it's used only to get information about the physical disks connected
  in a controller (regardless if they are in a volume set or not).
- Added BIOC_SSDELHOTSPARE, BIOC_SSPASTHRU, BIOC_SSDELPASSTHRU,
  BIOC_SSCHECKSTART_VOL and BIOC_SSCHECKSTOPVOL; to remove a hot-spare,
  add and remove a pass-through disk and to start/stop a consistency
  check in a volume.
- Added the BIOC_VOLOPS ioctl; to create/remove a volume set.
- Removed the BIOCCREATERAID ioctl, it was too limited for my needs.
- Added compatibility ioctls for BIOCDISK and BIOCVOL, enabled via COMPAT_30.
2008-01-02 23:45:03 +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 a8262a855b u_quad_t -> uint64_t as suggested by thorpej@. 2007-11-02 19:09:22 +00:00
xtraeme 7509a8c524 KNF, MALLOC -> malloc, u_intXX_t -> uintXX_t. 2007-11-02 08:38:37 +00:00
xtraeme eba879f813 Make bd_size and bv_size u_quad_t rather than size_t, for large RAID
volumes. Reported a while ago by mhitch@.
2007-11-02 08:37:06 +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