Home | History | Annotate | Line # | Download | only in coda
coda_vfsops.h revision 1.8
      1  1.8      fvdl /*	$NetBSD: coda_vfsops.h,v 1.8 2003/06/29 22:29:10 fvdl Exp $	*/
      2  1.2       rvb 
      3  1.1       rvb /*
      4  1.2       rvb  *
      5  1.2       rvb  *             Coda: an Experimental Distributed File System
      6  1.2       rvb  *                              Release 3.1
      7  1.2       rvb  *
      8  1.2       rvb  *           Copyright (c) 1987-1998 Carnegie Mellon University
      9  1.2       rvb  *                          All Rights Reserved
     10  1.2       rvb  *
     11  1.2       rvb  * Permission  to  use, copy, modify and distribute this software and its
     12  1.2       rvb  * documentation is hereby granted,  provided  that  both  the  copyright
     13  1.2       rvb  * notice  and  this  permission  notice  appear  in  all  copies  of the
     14  1.2       rvb  * software, derivative works or  modified  versions,  and  any  portions
     15  1.2       rvb  * thereof, and that both notices appear in supporting documentation, and
     16  1.2       rvb  * that credit is given to Carnegie Mellon University  in  all  documents
     17  1.2       rvb  * and publicity pertaining to direct or indirect use of this code or its
     18  1.2       rvb  * derivatives.
     19  1.2       rvb  *
     20  1.2       rvb  * CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS  KNOWN  TO  HAVE  BUGS,
     21  1.2       rvb  * SOME  OF  WHICH MAY HAVE SERIOUS CONSEQUENCES.  CARNEGIE MELLON ALLOWS
     22  1.2       rvb  * FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.   CARNEGIE  MELLON
     23  1.2       rvb  * DISCLAIMS  ANY  LIABILITY  OF  ANY  KIND  FOR  ANY  DAMAGES WHATSOEVER
     24  1.2       rvb  * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE  OR  OF
     25  1.2       rvb  * ANY DERIVATIVE WORK.
     26  1.2       rvb  *
     27  1.2       rvb  * Carnegie  Mellon  encourages  users  of  this  software  to return any
     28  1.2       rvb  * improvements or extensions that  they  make,  and  to  grant  Carnegie
     29  1.2       rvb  * Mellon the rights to redistribute these changes without encumbrance.
     30  1.2       rvb  *
     31  1.4       rvb  * 	@(#) coda/coda_vfsops.h,v 1.1.1.1 1998/08/29 21:26:46 rvb Exp $
     32  1.2       rvb  */
     33  1.1       rvb 
     34  1.1       rvb /*
     35  1.1       rvb  * cfid structure:
     36  1.1       rvb  * This overlays the fid structure (see vfs.h)
     37  1.1       rvb  * Only used below and will probably go away.
     38  1.1       rvb  */
     39  1.1       rvb 
     40  1.1       rvb struct cfid {
     41  1.1       rvb     u_short	cfid_len;
     42  1.1       rvb     u_short     padding;
     43  1.1       rvb     ViceFid	cfid_fid;
     44  1.1       rvb };
     45  1.1       rvb 
     46  1.1       rvb struct mount;
     47  1.1       rvb 
     48  1.3       rvb int coda_vfsopstats_init(void);
     49  1.3       rvb int coda_mount(struct mount *, const char *, void *, struct nameidata *,
     50  1.8      fvdl 		       struct proc *);
     51  1.8      fvdl int coda_start(struct mount *, int, struct proc *);
     52  1.8      fvdl int coda_unmount(struct mount *, int, struct proc *);
     53  1.7   thorpej int coda_root(struct mount *, struct vnode **);
     54  1.8      fvdl int coda_quotactl(struct mount *, int, uid_t, caddr_t, struct proc *);
     55  1.8      fvdl int coda_nb_statfs(struct mount *, struct statfs *, struct proc *);
     56  1.8      fvdl int coda_sync(struct mount *, int, struct ucred *, struct proc *);
     57  1.7   thorpej int coda_vget(struct mount *, ino_t, struct vnode **);
     58  1.3       rvb int coda_fhtovp(struct mount *, struct fid *, struct mbuf *, struct vnode **,
     59  1.7   thorpej 		       int *, struct ucred **);
     60  1.3       rvb int coda_vptofh(struct vnode *, struct fid *);
     61  1.3       rvb void coda_init(void);
     62  1.5  jdolecek void coda_done(void);
     63  1.3       rvb int coda_sysctl(int *, u_int, void *, size_t *, void *, size_t,
     64  1.8      fvdl 		    struct proc *);
     65  1.1       rvb int getNewVnode(struct vnode **vpp);
     66