Subject: Re: discovering underlying drive names
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 02/14/2006 10:48:18
> There has been talk, at various stages, of a method that should be
> developed to allow the actual drives (spindles) that underly a
> filesystem (device upon which a filesystem may reside) to be located.
I'd like to see such a thing too; my live-backup code could definitely
benefit from it (to avoid thrashing a spindle by doing rescans on
multiple partitions at once).
> + j = VOP_IOCTL(cs->sc_cinfo[i].ci_vp, cmd, data,
> + flag, uc, l);
Isn't it slightly more efficient to specify DIOCGSPINDLES instead of
cmd in the subcall?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B