vfs_mountedon - check if the vnode belongs to a mounted file system
A common use of
vfs_mountedon ();
is to call it on device vnodes to determine if they are already associated with
a file system.
This is done to prevent multiple mounts on the same device.
int ffs_mountfs(devvp, mp, td, malloctype) register struct vnode *devvp; struct mount *mp; struct thread *td; struct malloc_type *malloctype; { ... error = vfs_mountedon(devvp); if (error) return (error); ... }
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |