Subject: Re: soc zfs: system disk list (from userland)
To: None <tech-kern@netbsd.org, thorpej@shagadelic.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 08/16/2007 12:28:09
On Wed, Aug 15, 2007 at 10:17:07PM -0400, Oliver Gould wrote:
> Hello-
>
> I see that there is a disk queue(9) (dk_link) stored in struct disk.
> Yet, there is no code that manipulates this structure member in
> sys/kern/subr_disk.c (nor, afaict with grep, anywhere else). Is this
> TAILQ actually maintained somewhere?
>
> Either way, is there any way to iterate through attached disks (esp.
> from userland)?
Would the list returned by hw.disknames be enough ?
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
NetBSD: 26 ans d'experience feront toujours la difference
--