summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-12-08 04:45:23 +0000
committerken <ken@FreeBSD.org>1999-12-08 04:45:23 +0000
commit235e74ef14545e7100cec4fa645aff076da52816 (patch)
tree32b247bb1e4d2829469cabf6d97c96992ec8612b /sys/dev/ida
parent9ad09710679f41c5f78e53b1fa6541b8251a0867 (diff)
downloadFreeBSD-src-235e74ef14545e7100cec4fa645aff076da52816.zip
FreeBSD-src-235e74ef14545e7100cec4fa645aff076da52816.tar.gz
Revamp the devstat priority system. All disks now have the same priority.
The same goes for CD drivers and tape drivers. In systems with mixed IDE and SCSI, devices in the same priority class will be sorted in attach order. Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of drivers have been modified to use that priority. This includes the necessary changes to all drivers, except the ATA drivers. Soren will modify those separately. This does not include and does not require any change in the devstat version number, since no known userland applications use the priority enumerations. Reviewed by: msmith, sos, phk, jlemon, mjacob, bde
Diffstat (limited to 'sys/dev/ida')
-rw-r--r--sys/dev/ida/ida_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c
index 294b85b..5b996d4 100644
--- a/sys/dev/ida/ida_disk.c
+++ b/sys/dev/ida/ida_disk.c
@@ -312,7 +312,8 @@ idattach(device_t dev)
devstat_add_entry(&drv->stats, "id", drv->unit, drv->secsize,
DEVSTAT_NO_ORDERED_TAGS,
- DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, DEVSTAT_PRIORITY_DA);
+ DEVSTAT_TYPE_STORARRAY| DEVSTAT_TYPE_IF_OTHER,
+ DEVSTAT_PRIORITY_ARRAY);
return (0);
}
OpenPOWER on IntegriCloud