Home | History | Annotate | Line # | Download | only in coda
coda_vfsops.h revision 1.1
      1  1.1  rvb /*
      2  1.1  rvb 
      3  1.1  rvb             Coda: an Experimental Distributed File System
      4  1.1  rvb                              Release 3.1
      5  1.1  rvb 
      6  1.1  rvb           Copyright (c) 1987-1998 Carnegie Mellon University
      7  1.1  rvb                          All Rights Reserved
      8  1.1  rvb 
      9  1.1  rvb Permission  to  use, copy, modify and distribute this software and its
     10  1.1  rvb documentation is hereby granted,  provided  that  both  the  copyright
     11  1.1  rvb notice  and  this  permission  notice  appear  in  all  copies  of the
     12  1.1  rvb software, derivative works or  modified  versions,  and  any  portions
     13  1.1  rvb thereof, and that both notices appear in supporting documentation, and
     14  1.1  rvb that credit is given to Carnegie Mellon University  in  all  documents
     15  1.1  rvb and publicity pertaining to direct or indirect use of this code or its
     16  1.1  rvb derivatives.
     17  1.1  rvb 
     18  1.1  rvb CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS  KNOWN  TO  HAVE  BUGS,
     19  1.1  rvb SOME  OF  WHICH MAY HAVE SERIOUS CONSEQUENCES.  CARNEGIE MELLON ALLOWS
     20  1.1  rvb FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.   CARNEGIE  MELLON
     21  1.1  rvb DISCLAIMS  ANY  LIABILITY  OF  ANY  KIND  FOR  ANY  DAMAGES WHATSOEVER
     22  1.1  rvb RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE  OR  OF
     23  1.1  rvb ANY DERIVATIVE WORK.
     24  1.1  rvb 
     25  1.1  rvb Carnegie  Mellon  encourages  users  of  this  software  to return any
     26  1.1  rvb improvements or extensions that  they  make,  and  to  grant  Carnegie
     27  1.1  rvb Mellon the rights to redistribute these changes without encumbrance.
     28  1.1  rvb */
     29  1.1  rvb 
     30  1.1  rvb /* $Header: /tank/opengrok/rsync2/NetBSD/src/sys/coda/coda_vfsops.h,v 1.1 1998/08/29 21:26:46 rvb Exp $ */
     31  1.1  rvb 
     32  1.1  rvb /*
     33  1.1  rvb  * cfid structure:
     34  1.1  rvb  * This overlays the fid structure (see vfs.h)
     35  1.1  rvb  * Only used below and will probably go away.
     36  1.1  rvb  */
     37  1.1  rvb 
     38  1.1  rvb struct cfid {
     39  1.1  rvb     u_short	cfid_len;
     40  1.1  rvb     u_short     padding;
     41  1.1  rvb     ViceFid	cfid_fid;
     42  1.1  rvb };
     43  1.1  rvb 
     44  1.1  rvb 
     45  1.1  rvb struct mount;
     46  1.1  rvb 
     47  1.1  rvb int cfs_vfsopstats_init(void);
     48  1.1  rvb #ifdef	NetBSD1_3
     49  1.1  rvb int cfs_mount(struct mount *, const char *, void *, struct nameidata *,
     50  1.1  rvb 		       struct proc *);
     51  1.1  rvb #else
     52  1.1  rvb int cfs_mount(struct mount *, char *, caddr_t, struct nameidata *,
     53  1.1  rvb 		       struct proc *);
     54  1.1  rvb #endif
     55  1.1  rvb int cfs_start(struct mount *, int, struct proc *);
     56  1.1  rvb int cfs_unmount(struct mount *, int, struct proc *);
     57  1.1  rvb int cfs_root(struct mount *, struct vnode **);
     58  1.1  rvb int cfs_quotactl(struct mount *, int, uid_t, caddr_t, struct proc *);
     59  1.1  rvb int cfs_nb_statfs(struct mount *, struct statfs *, struct proc *);
     60  1.1  rvb int cfs_sync(struct mount *, int, struct ucred *, struct proc *);
     61  1.1  rvb int cfs_vget(struct mount *, ino_t, struct vnode **);
     62  1.1  rvb int cfs_fhtovp(struct mount *, struct fid *, struct mbuf *, struct vnode **,
     63  1.1  rvb 		       int *, struct ucred **);
     64  1.1  rvb int cfs_vptofh(struct vnode *, struct fid *);
     65  1.1  rvb #ifdef	__NetBSD__
     66  1.1  rvb void cfs_init(void);
     67  1.1  rvb #elif defined(__FreeBSD__)
     68  1.1  rvb #ifdef	__FreeBSD_version
     69  1.1  rvb int cfs_init(struct vfsconf *vfsp);
     70  1.1  rvb #else
     71  1.1  rvb int cfs_init(void);
     72  1.1  rvb #endif
     73  1.1  rvb #endif
     74  1.1  rvb #if	defined(__NetBSD__) && defined(NetBSD1_3) && (NetBSD1_3 >= 7)
     75  1.1  rvb int cfs_sysctl(int *, u_int, void *, size_t *, void *, size_t,
     76  1.1  rvb 		    struct proc *);
     77  1.1  rvb #endif
     78  1.1  rvb int getNewVnode(struct vnode **vpp);
     79