diff options
author | ken <ken@FreeBSD.org> | 1999-12-08 04:45:23 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1999-12-08 04:45:23 +0000 |
commit | 235e74ef14545e7100cec4fa645aff076da52816 (patch) | |
tree | 32b247bb1e4d2829469cabf6d97c96992ec8612b /sys/dev | |
parent | 9ad09710679f41c5f78e53b1fa6541b8251a0867 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/amr/amr_disk.c | 4 | ||||
-rw-r--r-- | sys/dev/ccd/ccd.c | 4 | ||||
-rw-r--r-- | sys/dev/ida/ida_disk.c | 3 | ||||
-rw-r--r-- | sys/dev/mlx/mlx_disk.c | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/amr/amr_disk.c b/sys/dev/amr/amr_disk.c index 54d1213..e9c0567 100644 --- a/sys/dev/amr/amr_disk.c +++ b/sys/dev/amr/amr_disk.c @@ -288,8 +288,8 @@ amrd_attach(device_t dev) devstat_add_entry(&sc->amrd_stats, "amrd", sc->amrd_unit, AMR_BLKSIZE, DEVSTAT_NO_ORDERED_TAGS, - DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, - DEVSTAT_PRIORITY_DA); + DEVSTAT_TYPE_STORARRAY | DEVSTAT_TYPE_IF_OTHER, + DEVSTAT_PRIORITY_ARRAY); disk_create(sc->amrd_unit, &sc->amrd_disk, 0, &amrd_cdevsw, &amrddisk_cdevsw); disks_registered++; diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index fcca237..7f14c78 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -543,8 +543,8 @@ ccdinit(ccd, cpaths, p) */ devstat_add_entry(&cs->device_stats, "ccd", ccd->ccd_unit, ccg->ccg_secsize, DEVSTAT_ALL_SUPPORTED, - DEVSTAT_TYPE_ASC0 |DEVSTAT_TYPE_IF_OTHER, - DEVSTAT_PRIORITY_CCD); + DEVSTAT_TYPE_STORARRAY |DEVSTAT_TYPE_IF_OTHER, + DEVSTAT_PRIORITY_ARRAY); cs->sc_flags |= CCDF_INITED; cs->sc_cflags = ccd->ccd_flags; /* So we can find out later... */ 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); } diff --git a/sys/dev/mlx/mlx_disk.c b/sys/dev/mlx/mlx_disk.c index ab0da60..26bbfae 100644 --- a/sys/dev/mlx/mlx_disk.c +++ b/sys/dev/mlx/mlx_disk.c @@ -273,8 +273,8 @@ mlxd_attach(device_t dev) devstat_add_entry(&sc->mlxd_stats, "mlxd", sc->mlxd_unit, MLX_BLKSIZE, DEVSTAT_NO_ORDERED_TAGS, - DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, - DEVSTAT_PRIORITY_DA); + DEVSTAT_TYPE_STORARRAY | DEVSTAT_TYPE_IF_OTHER, + DEVSTAT_PRIORITY_ARRAY); dsk = disk_create(sc->mlxd_unit, &sc->mlxd_disk, 0, &mlxd_cdevsw, &mlxddisk_cdevsw); disks_registered++; |