mount.h (27606) | mount.h (28270) |
---|---|
1/* 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)mount.h 8.21 (Berkeley) 5/20/95 | 1/* 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)mount.h 8.21 (Berkeley) 5/20/95 |
34 * $Id: mount.h,v 1.43 1997/07/16 18:04:52 dfr Exp $ | 34 * $Id: mount.h,v 1.44 1997/07/22 08:03:19 bde Exp $ |
35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#ifndef KERNEL 41#include <sys/ucred.h> 42#endif --- 286 unchanged lines hidden (view full) --- 329 caddr_t arg, struct proc *p)); 330 int (*vfs_statfs) __P((struct mount *mp, struct statfs *sbp, 331 struct proc *p)); 332 int (*vfs_sync) __P((struct mount *mp, int waitfor, 333 struct ucred *cred, struct proc *p)); 334 int (*vfs_vget) __P((struct mount *mp, ino_t ino, 335 struct vnode **vpp)); 336 int (*vfs_fhtovp) __P((struct mount *mp, struct fid *fhp, | 35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#ifndef KERNEL 41#include <sys/ucred.h> 42#endif --- 286 unchanged lines hidden (view full) --- 329 caddr_t arg, struct proc *p)); 330 int (*vfs_statfs) __P((struct mount *mp, struct statfs *sbp, 331 struct proc *p)); 332 int (*vfs_sync) __P((struct mount *mp, int waitfor, 333 struct ucred *cred, struct proc *p)); 334 int (*vfs_vget) __P((struct mount *mp, ino_t ino, 335 struct vnode **vpp)); 336 int (*vfs_fhtovp) __P((struct mount *mp, struct fid *fhp, |
337 struct mbuf *nam, struct vnode **vpp, | 337 struct sockaddr *nam, struct vnode **vpp, |
338 int *exflagsp, struct ucred **credanonp)); 339 int (*vfs_vptofh) __P((struct vnode *vp, struct fid *fhp)); 340 int (*vfs_init) __P((struct vfsconf *)); 341}; 342 343#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \ 344 (*(MP)->mnt_op->vfs_mount)(MP, PATH, DATA, NDP, P) 345#define VFS_START(MP, FLAGS, P) (*(MP)->mnt_op->vfs_start)(MP, FLAGS, P) --- 75 unchanged lines hidden (view full) --- 421 __P((struct mount *, struct netexport *, struct export_args *)); 422int vfs_lock __P((struct mount *)); /* lock a vfs */ 423void vfs_msync __P((struct mount *, int)); 424void vfs_unlock __P((struct mount *)); /* unlock a vfs */ 425int vfs_busy __P((struct mount *, int, struct simplelock *, struct proc *)); 426int vfs_export /* process mount export info */ 427 __P((struct mount *, struct netexport *, struct export_args *)); 428struct netcred *vfs_export_lookup /* lookup host in fs export list */ | 338 int *exflagsp, struct ucred **credanonp)); 339 int (*vfs_vptofh) __P((struct vnode *vp, struct fid *fhp)); 340 int (*vfs_init) __P((struct vfsconf *)); 341}; 342 343#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \ 344 (*(MP)->mnt_op->vfs_mount)(MP, PATH, DATA, NDP, P) 345#define VFS_START(MP, FLAGS, P) (*(MP)->mnt_op->vfs_start)(MP, FLAGS, P) --- 75 unchanged lines hidden (view full) --- 421 __P((struct mount *, struct netexport *, struct export_args *)); 422int vfs_lock __P((struct mount *)); /* lock a vfs */ 423void vfs_msync __P((struct mount *, int)); 424void vfs_unlock __P((struct mount *)); /* unlock a vfs */ 425int vfs_busy __P((struct mount *, int, struct simplelock *, struct proc *)); 426int vfs_export /* process mount export info */ 427 __P((struct mount *, struct netexport *, struct export_args *)); 428struct netcred *vfs_export_lookup /* lookup host in fs export list */ |
429 __P((struct mount *, struct netexport *, struct mbuf *)); | 429 __P((struct mount *, struct netexport *, struct sockaddr *)); |
430void vfs_getnewfsid __P((struct mount *)); 431struct mount *vfs_getvfs __P((fsid_t *)); /* return vfs given fsid */ 432int vfs_mountedon __P((struct vnode *)); /* is a vfs mounted on vp */ 433int vfs_mountrootfs __P((char *)); 434int vfs_rootmountalloc __P((char *, char *, struct mount **)); 435void vfs_unbusy __P((struct mount *, struct proc *)); 436void vfs_unmountall __P((void)); 437extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ --- 39 unchanged lines hidden --- | 430void vfs_getnewfsid __P((struct mount *)); 431struct mount *vfs_getvfs __P((fsid_t *)); /* return vfs given fsid */ 432int vfs_mountedon __P((struct vnode *)); /* is a vfs mounted on vp */ 433int vfs_mountrootfs __P((char *)); 434int vfs_rootmountalloc __P((char *, char *, struct mount **)); 435void vfs_unbusy __P((struct mount *, struct proc *)); 436void vfs_unmountall __P((void)); 437extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ --- 39 unchanged lines hidden --- |