tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

How to get a struct mount


I hace a filesystem mounted on /foo how do I retreive its struct mount?

Using namei_simple_user(), I can get a vnode for /foo but its v_mount is
the one for the root filesystem. Looking up /foo/ produces an error.
(bad address). 

How do I cross the mount point and get a vnode for the monted filesystem
root? Or should I get the struct mount by another method?

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index