summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2002-07-13 13:18:05 +0000
committerkrw <krw@openbsd.org>2002-07-13 13:18:05 +0000
commit6f32645ee593f02930ede93d61937cecb1982a79 (patch)
treef60874fad17d929ebb8c7c0d5d476ef4687df78f /sys/dev/pci
parentuse snprintf (diff)
downloadwireguard-openbsd-6f32645ee593f02930ede93d61937cecb1982a79.tar.xz
wireguard-openbsd-6f32645ee593f02930ede93d61937cecb1982a79.zip
More cleanup/simplification/shrinkage.
1) Factor out inquiring for a device. ask_fordev() now does this for root disk determination, other disk initialization, install sets disk or cd inquiry. Also ensures cd devices are created on the fly like disk devices already were, and shortens some verbiage. 2) Just ask for root disk if install is skipping disk initialization, rather than doing the 'df /mnt ...' scan, since 1) we just end up asking anyway and 2) everything *should* have been umount'ed when previous install was finished or interrupted. 3) getrootdisk -> get_rootdisk to conform to get_<global> naming convention. 4) Add and use new global ROOTDEV rather than constantly adding 'a' to ROOTDISK. ROOTDEV default is set in get_rootdisk(). 5) Put loop inside get_rootdisk rather than always putting one around it. If no rootdisk found/specified just exit install/update. 6) Eliminate getanotherdisk since ask_fordev() does most of the work. 7) Eliminate parameter to check_fs, just use ROOTDEV instead. 8) Some typographical and minor code tweaks.
Diffstat (limited to 'sys/dev/pci')
0 files changed, 0 insertions, 0 deletions