Subject: bin/14468: pcictl(8) is broken by a change to opendisk(3) that constrains iscooked=1 to block devices
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 11/05/2001 07:04:04
>Synopsis: pcictl(8) is broken by a change to opendisk(3) that constrains iscooked=1 to block devices
>Arrival-Date: Mon Nov 05 07:05:02 PST 2001
>Originator: Valeriy E. Ushakov
>Release: -current as of 2001-11-03
NetBSD krups 1.5Y NetBSD 1.5Y (KRUPS) #30: Mon Nov 5 03:05:20 MSK 2001 uwe@
(yes, it's sparc, it's an uncomitted port to microSPARC-IIep
with on-board PCI controller)
pcictl(8) uses opendisk(3) to open the /dev/pci* device and passes
iscooked = 1 to avoid prepending of the 'r' prefix to the device name.
opendisk(3) was recently changed (rev 1.8 of basesrc/lib/libutil/opendisk.c)
to check that the device opened with iscooked=1 is a block device.
This change breaks pcictl(8) since /dev/pci* are character devices.
$ pcictl pci0 list
pcictl: pci0: Operation not supported by device
on a -curent with rev 1.8 of opendisk.c
pcictl(8) shouldn't (ab)use opendisk(3) to open the device.