Home | History | Annotate | Line # | Download | only in coda
coda_vfsops.h revision 1.18.82.2
      1  1.18.82.2     skrll /*	$NetBSD: coda_vfsops.h,v 1.18.82.2 2017/08/28 17:51:57 skrll Exp $	*/
      2        1.2       rvb 
      3        1.1       rvb /*
      4       1.13     perry  *
      5        1.2       rvb  *             Coda: an Experimental Distributed File System
      6        1.2       rvb  *                              Release 3.1
      7       1.13     perry  *
      8        1.2       rvb  *           Copyright (c) 1987-1998 Carnegie Mellon University
      9        1.2       rvb  *                          All Rights Reserved
     10       1.13     perry  *
     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.13     perry  *
     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.13     perry  *
     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.13     perry  *
     31       1.13     perry  * 	@(#) 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.9  drochner     CodaFid	cfid_fid;
     44        1.1       rvb };
     45        1.1       rvb 
     46        1.1       rvb struct mount;
     47  1.18.82.2     skrll struct mbuf;
     48        1.1       rvb 
     49        1.3       rvb int coda_vfsopstats_init(void);
     50       1.18     pooka int coda_mount(struct mount *, const char *, void *, size_t *);
     51       1.18     pooka int coda_start(struct mount *, int);
     52       1.18     pooka int coda_unmount(struct mount *, int);
     53        1.7   thorpej int coda_root(struct mount *, struct vnode **);
     54       1.18     pooka int coda_nb_statvfs(struct mount *, struct statvfs *);
     55       1.18     pooka int coda_sync(struct mount *, int, kauth_cred_t);
     56        1.7   thorpej int coda_vget(struct mount *, ino_t, struct vnode **);
     57  1.18.82.1     skrll int coda_loadvnode(struct mount *, struct vnode *, const void *, size_t,
     58  1.18.82.1     skrll     const void **);
     59        1.3       rvb int coda_fhtovp(struct mount *, struct fid *, struct mbuf *, struct vnode **,
     60       1.15      elad 		       int *, kauth_cred_t *);
     61        1.3       rvb int coda_vptofh(struct vnode *, struct fid *);
     62        1.3       rvb void coda_init(void);
     63        1.5  jdolecek void coda_done(void);
     64        1.3       rvb int coda_sysctl(int *, u_int, void *, size_t *, void *, size_t,
     65       1.14  christos 		    struct lwp *);
     66        1.1       rvb int getNewVnode(struct vnode **vpp);
     67       1.12    atatat 
     68       1.12    atatat #ifdef SYSCTL_SETUP_PROTO
     69       1.12    atatat SYSCTL_SETUP_PROTO(sysctl_vfs_coda_setup);
     70       1.12    atatat #endif /* SYSCTL_SETUP_PROTO */
     71