Change the devstat priorities to the std values now in devicestats.h
This commit is contained in:
parent
1b15e9efa0
commit
c0fe21f0b9
sys/dev/ata
@ -229,7 +229,7 @@ ad_attach(void *notused)
|
||||
devstat_add_entry(&adp->stats, "ad", adp->lun, DEV_BSIZE,
|
||||
DEVSTAT_NO_ORDERED_TAGS,
|
||||
DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_IDE,
|
||||
0x180);
|
||||
DEVSTAT_PRIORITY_DISK);
|
||||
|
||||
dev1 = disk_create(adp->lun, &adp->disk, 0, &ad_cdevsw,
|
||||
&addisk_cdevsw);
|
||||
|
@ -183,7 +183,7 @@ acdattach(struct atapi_softc *atp)
|
||||
devstat_add_entry(cdp->stats, string, tmpcdp->lun, DEV_BSIZE,
|
||||
DEVSTAT_NO_ORDERED_TAGS,
|
||||
DEVSTAT_TYPE_CDROM | DEVSTAT_TYPE_IF_IDE,
|
||||
0x178);
|
||||
DEVSTAT_PRIORITY_CD);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -113,7 +113,7 @@ afdattach(struct atapi_softc *atp)
|
||||
devstat_add_entry(&fdp->stats, "afd", fdp->lun, DEV_BSIZE,
|
||||
DEVSTAT_NO_ORDERED_TAGS,
|
||||
DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_IDE,
|
||||
0x174);
|
||||
DEVSTAT_PRIORITY_WFD);
|
||||
dev = disk_create(fdp->lun, &fdp->disk, 0, &afd_cdevsw, &afddisk_cdevsw);
|
||||
dev->si_drv1 = fdp;
|
||||
dev->si_iosize_max = 252 * DEV_BSIZE;
|
||||
|
@ -139,7 +139,7 @@ astattach(struct atapi_softc *atp)
|
||||
devstat_add_entry(&stp->stats, "ast", stp->lun, DEV_BSIZE,
|
||||
DEVSTAT_NO_ORDERED_TAGS,
|
||||
DEVSTAT_TYPE_SEQUENTIAL | DEVSTAT_TYPE_IF_IDE,
|
||||
0x170);
|
||||
DEVSTAT_PRIORITY_TAPE);
|
||||
dev = make_dev(&ast_cdevsw, dkmakeminor(stp->lun, 0, 0),
|
||||
UID_ROOT, GID_OPERATOR, 0640, "rast%d", stp->lun);
|
||||
dev->si_drv1 = stp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user