2005-01-05 23:35:00 +00:00
|
|
|
/*-
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
1998-09-02 19:09:53 +00:00
|
|
|
* Coda: an Experimental Distributed File System
|
|
|
|
* Release 3.1
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
1998-09-02 19:09:53 +00:00
|
|
|
* Copyright (c) 1987-1998 Carnegie Mellon University
|
|
|
|
* All Rights Reserved
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
1998-09-02 19:09:53 +00:00
|
|
|
* Permission to use, copy, modify and distribute this software and its
|
|
|
|
* documentation is hereby granted, provided that both the copyright
|
|
|
|
* notice and this permission notice appear in all copies of the
|
|
|
|
* software, derivative works or modified versions, and any portions
|
|
|
|
* thereof, and that both notices appear in supporting documentation, and
|
|
|
|
* that credit is given to Carnegie Mellon University in all documents
|
|
|
|
* and publicity pertaining to direct or indirect use of this code or its
|
|
|
|
* derivatives.
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
1998-09-02 19:09:53 +00:00
|
|
|
* CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
|
|
|
|
* SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
|
|
|
|
* FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
|
|
|
|
* DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
|
|
|
|
* RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
|
|
|
|
* ANY DERIVATIVE WORK.
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
1998-09-02 19:09:53 +00:00
|
|
|
* Carnegie Mellon encourages users of this software to return any
|
|
|
|
* improvements or extensions that they make, and to grant Carnegie
|
|
|
|
* Mellon the rights to redistribute these changes without encumbrance.
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
|
|
|
* @(#) src/sys/cfs/coda_vfsops.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1998-09-02 19:09:53 +00:00
|
|
|
*/
|
1998-08-29 21:14:52 +00:00
|
|
|
|
2008-02-10 11:18:12 +00:00
|
|
|
#ifndef _CODA_VFSOPS_H_
|
|
|
|
#define _CODA_VFSOPS_H_
|
|
|
|
|
1998-08-29 21:14:52 +00:00
|
|
|
/*
|
|
|
|
* cfid structure:
|
2008-02-10 11:18:12 +00:00
|
|
|
*
|
|
|
|
* This overlays the fid structure (see vfs.h); only used below and will
|
|
|
|
* probably go away.
|
1998-08-29 21:14:52 +00:00
|
|
|
*/
|
|
|
|
struct cfid {
|
2008-02-10 11:18:12 +00:00
|
|
|
u_short cfid_len;
|
|
|
|
u_short padding;
|
2010-04-05 20:12:54 +00:00
|
|
|
struct CodaFid cfid_fid;
|
1998-08-29 21:14:52 +00:00
|
|
|
};
|
|
|
|
|
2000-10-05 11:58:22 +00:00
|
|
|
struct mbuf;
|
1998-08-29 21:14:52 +00:00
|
|
|
struct mount;
|
2008-02-10 11:18:12 +00:00
|
|
|
int coda_vfsopstats_init(void);
|
|
|
|
int coda_fhtovp(struct mount *, struct fid *, struct mbuf *,
|
|
|
|
struct vnode **, int *, struct ucred **);
|
2003-06-12 20:48:38 +00:00
|
|
|
|
|
|
|
vfs_mount_t coda_mount;
|
|
|
|
vfs_unmount_t coda_unmount;
|
|
|
|
vfs_root_t coda_root;
|
Various further non-functional cleanups to coda:
- Rename print_vattr to coda_print_vattr and make static, rename
print_cred to coda_print_cred.
- Remove unused coda_vop_nop.
- Add XXX comment because coda_readdir forwards to the cache vnode's
readdir rather than venus_readdir, and annotate venus_readdir as
unused.
- Rename vc_nb_* to vc_*.
- Use d_open_t, d_close_t, d_read_t, d_write_t, d_ioctl_t and d_poll_t
for prototyping vc_* as that is the intent, don't use our own
definitions.
- Rename coda_nb_statfs to coda_statfs, rename NB_SFS_SIZ to
CODA_SFS_SIZ.
- Replace one more OBE reference to NetBSD with a reference to FreeBSD.
- Tidy up a little vertical whitespace here and there.
- Annotate coda_nc_zapvnode as unused.
- Remove unused vcodattach.
- Annotate VM_INTR as unused.
- Annotate that coda_fhtovp is unused and doesn't match the FreeBSD
prototype, so isn't hooked up to vfs_fhtovp. If we want NFS export of
Coda to work someday, this needs to be fixed.
- Remove unused getNewVnode.
- Remove unused coda_vget, coda_init, coda_quotactl prototypes.
MFC after: 1 month
2008-02-09 12:49:18 +00:00
|
|
|
vfs_statfs_t coda_statfs;
|
2003-06-12 20:48:38 +00:00
|
|
|
vfs_sync_t coda_sync;
|
2008-02-10 11:18:12 +00:00
|
|
|
|
|
|
|
#endif /* !_CODA_VFSOPS_H_ */
|