summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_nbsd.c
blob: eb117ce58003c88d253eeddb09a37bd05b1cfc75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*

            Coda: an Experimental Distributed File System
                             Release 3.1

          Copyright (c) 1987-1998 Carnegie Mellon University
                         All Rights Reserved

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.

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.

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.
*/

/* $Header: /afs/cs/project/coda-src/cvs/coda/kernel-src/vfs/freebsd/cfs/cfs_nbsd.c,v 1.21 1998/08/28 18:12:17 rvb Exp $ */

/* 
 * Mach Operating System
 * Copyright (c) 1990 Carnegie-Mellon University
 * Copyright (c) 1989 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */

/*
 * This code was written for the Coda file system at Carnegie Mellon
 * University.  Contributers include David Steere, James Kistler,
 * M. Satyanarayanan, and Brian Noble.  
 */

/* 
 * HISTORY
 * $Log: cfs_nbsd.c,v $
 * Revision 1.21  1998/08/28 18:12:17  rvb
 * Now it also works on FreeBSD -current.  This code will be
 * committed to the FreeBSD -current and NetBSD -current
 * trees.  It will then be tailored to the particular platform
 * by flushing conditional code.
 *
 * Revision 1.20  1998/08/18 17:05:15  rvb
 * Don't use __RCSID now
 *
 * Revision 1.19  1998/08/18 16:31:40  rvb
 * Sync the code for NetBSD -current; test on 1.3 later
 *
 * Revision 1.18  98/01/23  11:53:40  rvb
 * Bring RVB_CFS1_1 to HEAD
 * 
 * Revision 1.17.2.1  97/12/09  16:07:11  rvb
 * Sync with vfs/include/coda.h
 * 
 * Revision 1.17  97/12/05  10:39:15  rvb
 * Read CHANGES
 * 
 * Revision 1.16.6.5  97/11/20  11:46:39  rvb
 * Capture current cfs_venus
 * 
 * Revision 1.16.6.4  97/11/18  10:27:14  rvb
 * cfs_nbsd.c is DEAD!!!; integrated into cfs_vf/vnops.c
 * cfs_nb_foo and cfs_foo are joined
 * 
 * Revision 1.16.6.3  97/11/13  22:02:58  rvb
 * pass2 cfs_NetBSD.h mt
 * 
 * Revision 1.16.6.2  97/11/12  12:09:37  rvb
 * reorg pass1
 * 
 * Revision 1.16.6.1  97/10/28  23:10:14  rvb
 * >64Meg; venus can be killed!
 * 
 * Revision 1.16  97/07/18  15:28:41  rvb
 * Bigger/Better/Faster than AFS
 * 
 * Revision 1.15  1997/02/19 18:41:39  bnoble
 * Didn't sufficiently unswap the now-unswapped dvp and vp in cfs_nb_link
 *
 * Revision 1.13  1997/02/18 23:46:25  bnoble
 * NetBSD swapped the order of arguments to VOP_LINK between 1.1 and 1.2.
 * This tracks that change.
 *
 * Revision 1.12  1997/02/18 22:23:38  bnoble
 * Rename lockdebug to cfs_lockdebug
 *
 * Revision 1.11  1997/02/13 18:46:14  rvb
 * Name CODA FS for df
 *
 * Revision 1.10  1997/02/12 15:32:05  rvb
 * Make statfs return values like for AFS
 *
 * Revision 1.9  1997/01/30 16:42:02  bnoble
 * Trace version as of SIGCOMM submission.  Minor fix in cfs_nb_open
 *
 * Revision 1.8  1997/01/13 17:11:05  bnoble
 * Coda statfs needs to return something other than -1 for blocks avail. and
 * files available for wabi (and other windowsish) programs to install
 * there correctly.
 *
 * Revision 1.6  1996/12/05 16:20:14  bnoble
 * Minor debugging aids
 *
 * Revision 1.5  1996/11/25 18:25:11  bnoble
 * Added a diagnostic check for cfs_nb_lock
 *
 * Revision 1.4  1996/11/13 04:14:19  bnoble
 * Merging BNOBLE_WORK_6_20_96 into main line
 *
 *
 * Revision 1.3  1996/11/08 18:06:11  bnoble
 * Minor changes in vnode operation signature, VOP_UPDATE signature, and
 * some newly defined bits in the include files.
 *
 * Revision 1.2.8.1  1996/06/26 16:28:26  bnoble
 * Minor bug fixes
 *
 * Revision 1.2  1996/01/02 16:56:52  bnoble
 * Added support for Coda MiniCache and raw inode calls (final commit)
 *
 * Revision 1.1.2.1  1995/12/20 01:57:17  bnoble
 * Added CFS-specific files
 *
 */
OpenPOWER on IntegriCloud