1 /* $NetBSD: ffs_softdep.stub.c,v 1.13 2004/01/10 16:23:36 hannken Exp $ */
2
3 /*
4 * Copyright 1997 Marshall Kirk McKusick. All Rights Reserved.
5 *
6 * This code is derived from work done by Greg Ganger at the
7 * University of Michigan.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. None of the names of McKusick, Ganger, or the University of Michigan
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY MARSHALL KIRK MCKUSICK ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL MARSHALL KIRK MCKUSICK BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ffs_softdep.stub.c 9.1 (McKusick) 7/9/97
34 */
35
36 #include <sys/cdefs.h>
37 __KERNEL_RCSID(0, "$NetBSD: ffs_softdep.stub.c,v 1.13 2004/01/10 16:23:36 hannken Exp $");
38
39 #include <sys/param.h>
40 #include <sys/vnode.h>
41 #include <sys/systm.h>
42 #include <ufs/ufs/inode.h>
43 #include <ufs/ffs/fs.h>
44 #include <ufs/ffs/ffs_extern.h>
45 #include <ufs/ufs/ufs_extern.h>
46
47 int
48 softdep_flushworklist(oldmnt, countp, p)
49 struct mount *oldmnt;
50 int *countp;
51 struct proc *p;
52 {
53
54 panic("softdep_flushworklist called");
55 }
56
57 int
58 softdep_flushfiles(oldmnt, flags, p)
59 struct mount *oldmnt;
60 int flags;
61 struct proc *p;
62 {
63
64 panic("softdep_flushfiles called");
65 }
66
67 int
68 softdep_mount(devvp, mp, fs, cred)
69 struct vnode *devvp;
70 struct mount *mp;
71 struct fs *fs;
72 struct ucred *cred;
73 {
74
75 return (0);
76 }
77
78 void
79 softdep_initialize()
80 {
81
82 return;
83 }
84
85 void
86 softdep_reinitialize()
87 {
88
89 return;
90 }
91
92 void
93 softdep_setup_inomapdep(bp, ip, newinum)
94 struct buf *bp;
95 struct inode *ip;
96 ino_t newinum;
97 {
98
99 panic("softdep_setup_inomapdep called");
100 }
101
102 void
103 softdep_setup_blkmapdep(bp, fs, newblkno)
104 struct buf *bp;
105 struct fs *fs;
106 daddr_t newblkno;
107 {
108
109 panic("softdep_setup_blkmapdep called");
110 }
111
112 void
113 softdep_setup_allocdirect(ip, lbn, newblkno, oldblkno, newsize, oldsize, bp)
114 struct inode *ip;
115 daddr_t lbn;
116 daddr_t newblkno;
117 daddr_t oldblkno;
118 long newsize;
119 long oldsize;
120 struct buf *bp;
121 {
122
123 panic("softdep_setup_allocdirect called");
124 }
125
126 void
127 softdep_setup_allocindir_page(ip, lbn, bp, ptrno, newblkno, oldblkno, nbp)
128 struct inode *ip;
129 daddr_t lbn;
130 struct buf *bp;
131 int ptrno;
132 daddr_t newblkno;
133 daddr_t oldblkno;
134 struct buf *nbp;
135 {
136
137 panic("softdep_setup_allocindir_page called");
138 }
139
140 void
141 softdep_setup_allocindir_meta(nbp, ip, bp, ptrno, newblkno)
142 struct buf *nbp;
143 struct inode *ip;
144 struct buf *bp;
145 int ptrno;
146 daddr_t newblkno;
147 {
148
149 panic("softdep_setup_allocindir_meta called");
150 }
151
152 void
153 softdep_setup_freeblocks(ip, length, flags)
154 struct inode *ip;
155 off_t length;
156 int flags;
157 {
158
159 panic("softdep_setup_freeblocks called");
160 }
161
162 void
163 softdep_freefile(v)
164 void *v;
165 {
166 panic("softdep_freefile called");
167 }
168
169 int
170 softdep_setup_directory_add(bp, dp, diroffset, newinum, newdirbp, isnewblk)
171 struct buf *bp;
172 struct inode *dp;
173 off_t diroffset;
174 ino_t newinum;
175 struct buf *newdirbp;
176 int isnewblk;
177 {
178
179 panic("softdep_setup_directory_add called");
180 }
181
182 void
183 softdep_change_directoryentry_offset(dp, base, oldloc, newloc, entrysize)
184 struct inode *dp;
185 caddr_t base;
186 caddr_t oldloc;
187 caddr_t newloc;
188 int entrysize;
189 {
190
191 panic("softdep_change_directoryentry_offset called");
192 }
193
194 void
195 softdep_setup_remove(bp, dp, ip, isrmdir)
196 struct buf *bp;
197 struct inode *dp;
198 struct inode *ip;
199 int isrmdir;
200 {
201
202 panic("softdep_setup_remove called");
203 }
204
205 void
206 softdep_setup_directory_change(bp, dp, ip, newinum, isrmdir)
207 struct buf *bp;
208 struct inode *dp;
209 struct inode *ip;
210 ino_t newinum;
211 int isrmdir;
212 {
213
214 panic("softdep_setup_directory_change called");
215 }
216
217 void
218 softdep_change_linkcnt(ip)
219 struct inode *ip;
220 {
221
222 panic("softdep_change_linkcnt called");
223 }
224
225 void
226 softdep_load_inodeblock(ip)
227 struct inode *ip;
228 {
229
230 panic("softdep_load_inodeblock called");
231 }
232
233 void
234 softdep_update_inodeblock(ip, bp, waitfor)
235 struct inode *ip;
236 struct buf *bp;
237 int waitfor;
238 {
239
240 panic("softdep_update_inodeblock called");
241 }
242
243 void
244 softdep_fsync_mountdev(vp)
245 struct vnode *vp;
246 {
247 panic("softdep_fsync_mountdev called");
248 }
249
250 int
251 softdep_sync_metadata(v)
252 void *v;
253 {
254 return (0);
255 }
256
257 void
258 softdep_releasefile(ip)
259 struct inode *ip;
260 {
261 panic("softdep_releasefile called");
262 }
Cache object: 827da9188d5091124d03da2219b7522b
|