Subject: Listing all harddrives
To: None <tech-kern@netbsd.org>
From: Joel Wilsson <joelw@unix.se>
List: tech-kern
Date: 03/22/2003 15:41:18
Hi,
I'm hoping someone here can help me with what is probably a simple
problem:
I need a way to list all harddrives, regardless of whether they are
mounted
or not. It seems like the best way to do this would be to traverse
alldevs
and look for entries with dv_class set to DV_DISK, but alldevs is not
reachable from userland.
There must be a way to do this, but what is it?
TIA,
joelw