Swap Data for SUN OS - Refining the question
Dan Mick
dan at kfw.COM
Thu Oct 4 08:21:19 AEST 1990
In article <1990Oct2.150555.19405 at ecn.purdue.edu> songer at orchestra.ecn.purdue.edu (Christopher M Songer) writes:
>Any pointers on how to get from
>a vnode or a vfs to the disk name would be more than appreciated.
The vnode has field v_type which enumerates to VBLK if it's a disk; in
that case, v_rdev is the major/minor dev num. From there, it's a matter
of looking in bdevsw or searching /dev, whichever.
More information about the Comp.unix.internals
mailing list