Re: patch to correct order of network setup items
* Tollef Fog Heen <firstname.lastname@example.org> [2002-09-13 10:02]:
> * Michael Cardenas
> | Great! Where should I look? Is it part of anna?
> No, there is something in the attic of tools/ddetect
There are, at least, two methods for hard drive detection.
* with parted
* with discover
For parted, you can look at the source of partprobe
and in autopartkit
For libdiscover, you can look here :
Discover parse /proc/* entry.
parted use ioctl to find disks.
I don't know what is the best tool, and if they work fine on others archs,
and on Debian GNU/Hurd and Debian/xBSD.
And last thing, next version of discover (discover2) will use better
approach to these problems : there will be a generic api and different
functions for each OS. Yan can find some old devel sources at :
and release status at :