lfs.h revision 1.5 1 1.1 mycroft /*-
2 1.1 mycroft * Copyright (c) 1991, 1993
3 1.1 mycroft * The Regents of the University of California. All rights reserved.
4 1.1 mycroft *
5 1.1 mycroft * Redistribution and use in source and binary forms, with or without
6 1.1 mycroft * modification, are permitted provided that the following conditions
7 1.1 mycroft * are met:
8 1.1 mycroft * 1. Redistributions of source code must retain the above copyright
9 1.1 mycroft * notice, this list of conditions and the following disclaimer.
10 1.1 mycroft * 2. Redistributions in binary form must reproduce the above copyright
11 1.1 mycroft * notice, this list of conditions and the following disclaimer in the
12 1.1 mycroft * documentation and/or other materials provided with the distribution.
13 1.1 mycroft * 3. All advertising materials mentioning features or use of this software
14 1.1 mycroft * must display the following acknowledgement:
15 1.1 mycroft * This product includes software developed by the University of
16 1.1 mycroft * California, Berkeley and its contributors.
17 1.1 mycroft * 4. Neither the name of the University nor the names of its contributors
18 1.1 mycroft * may be used to endorse or promote products derived from this software
19 1.1 mycroft * without specific prior written permission.
20 1.1 mycroft *
21 1.1 mycroft * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 1.1 mycroft * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 1.1 mycroft * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 1.1 mycroft * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 1.1 mycroft * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 1.1 mycroft * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 1.1 mycroft * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 1.1 mycroft * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 1.1 mycroft * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 1.1 mycroft * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 1.1 mycroft * SUCH DAMAGE.
32 1.1 mycroft *
33 1.5 mycroft * @(#)lfs.h 8.5 (Berkeley) 7/8/94
34 1.1 mycroft */
35 1.1 mycroft
36 1.1 mycroft #define LFS_LABELPAD 8192 /* LFS label size */
37 1.1 mycroft #define LFS_SBPAD 8192 /* LFS superblock size */
38 1.1 mycroft
39 1.1 mycroft /*
40 1.1 mycroft * XXX
41 1.1 mycroft * This is a kluge and NEEDS to go away.
42 1.1 mycroft *
43 1.1 mycroft * Right now, ufs code handles most of the calls for directory operations
44 1.1 mycroft * such as create, mkdir, link, etc. As a result VOP_UPDATE is being
45 1.1 mycroft * called with waitfor set (since ffs does these things synchronously).
46 1.1 mycroft * Since LFS does not want to do these synchronously, we treat the last
47 1.1 mycroft * argument to lfs_update as a set of flags. If LFS_SYNC is set, then
48 1.1 mycroft * the update should be synchronous, if not, do it asynchronously.
49 1.1 mycroft * Unfortunately, this means that LFS won't work with NFS yet because
50 1.1 mycroft * NFS goes through paths that will make normal calls to ufs which will
51 1.1 mycroft * call lfs with a last argument of 1.
52 1.1 mycroft */
53 1.1 mycroft #define LFS_SYNC 0x02
54 1.1 mycroft
55 1.1 mycroft /* On-disk and in-memory checkpoint segment usage structure. */
56 1.1 mycroft typedef struct segusage SEGUSE;
57 1.1 mycroft struct segusage {
58 1.3 cgd u_int32_t su_nbytes; /* number of live bytes */
59 1.3 cgd u_int32_t su_lastmod; /* SEGUSE last modified timestamp */
60 1.3 cgd u_int16_t su_nsums; /* number of summaries in segment */
61 1.3 cgd u_int16_t su_ninos; /* number of inode blocks in seg */
62 1.5 mycroft
63 1.5 mycroft #define SEGUSE_ACTIVE 0x01 /* segment is currently being written */
64 1.5 mycroft #define SEGUSE_DIRTY 0x02 /* segment has data in it */
65 1.5 mycroft #define SEGUSE_SUPERBLOCK 0x04 /* segment contains a superblock */
66 1.3 cgd u_int32_t su_flags;
67 1.1 mycroft };
68 1.1 mycroft
69 1.1 mycroft #define SEGUPB(fs) (1 << (fs)->lfs_sushift)
70 1.1 mycroft #define SEGTABSIZE_SU(fs) \
71 1.1 mycroft (((fs)->lfs_nseg + SEGUPB(fs) - 1) >> (fs)->lfs_sushift)
72 1.1 mycroft
73 1.1 mycroft /* On-disk file information. One per file with data blocks in the segment. */
74 1.1 mycroft typedef struct finfo FINFO;
75 1.1 mycroft struct finfo {
76 1.3 cgd u_int32_t fi_nblocks; /* number of blocks */
77 1.3 cgd u_int32_t fi_version; /* version number */
78 1.3 cgd u_int32_t fi_ino; /* inode number */
79 1.5 mycroft daddr_t fi_blocks[1]; /* array of logical block numbers */
80 1.1 mycroft };
81 1.1 mycroft
82 1.1 mycroft /* On-disk and in-memory super block. */
83 1.1 mycroft struct lfs {
84 1.1 mycroft #define LFS_MAGIC 0x070162
85 1.3 cgd u_int32_t lfs_magic; /* magic number */
86 1.1 mycroft #define LFS_VERSION 1
87 1.3 cgd u_int32_t lfs_version; /* version number */
88 1.1 mycroft
89 1.3 cgd u_int32_t lfs_size; /* number of blocks in fs */
90 1.3 cgd u_int32_t lfs_ssize; /* number of blocks per segment */
91 1.3 cgd u_int32_t lfs_dsize; /* number of disk blocks in fs */
92 1.3 cgd u_int32_t lfs_bsize; /* file system block size */
93 1.3 cgd u_int32_t lfs_fsize; /* size of frag blocks in fs */
94 1.3 cgd u_int32_t lfs_frag; /* number of frags in a block in fs */
95 1.1 mycroft
96 1.1 mycroft /* Checkpoint region. */
97 1.3 cgd ino_t lfs_free; /* start of the free list */
98 1.3 cgd u_int32_t lfs_bfree; /* number of free disk blocks */
99 1.3 cgd u_int32_t lfs_nfiles; /* number of allocated inodes */
100 1.3 cgd int32_t lfs_avail; /* blocks available for writing */
101 1.3 cgd u_int32_t lfs_uinodes; /* inodes in cache not yet on disk */
102 1.3 cgd daddr_t lfs_idaddr; /* inode file disk address */
103 1.3 cgd ino_t lfs_ifile; /* inode file inode number */
104 1.3 cgd daddr_t lfs_lastseg; /* address of last segment written */
105 1.3 cgd daddr_t lfs_nextseg; /* address of next segment to write */
106 1.3 cgd daddr_t lfs_curseg; /* current segment being written */
107 1.3 cgd daddr_t lfs_offset; /* offset in curseg for next partial */
108 1.3 cgd daddr_t lfs_lastpseg; /* address of last partial written */
109 1.3 cgd u_int32_t lfs_tstamp; /* time stamp */
110 1.1 mycroft
111 1.1 mycroft /* These are configuration parameters. */
112 1.3 cgd u_int32_t lfs_minfree; /* minimum percentage of free blocks */
113 1.1 mycroft
114 1.1 mycroft /* These fields can be computed from the others. */
115 1.3 cgd u_int64_t lfs_maxfilesize; /* maximum representable file size */
116 1.3 cgd u_int32_t lfs_dbpseg; /* disk blocks per segment */
117 1.3 cgd u_int32_t lfs_inopb; /* inodes per block */
118 1.3 cgd u_int32_t lfs_ifpb; /* IFILE entries per block */
119 1.3 cgd u_int32_t lfs_sepb; /* SEGUSE entries per block */
120 1.3 cgd u_int32_t lfs_nindir; /* indirect pointers per block */
121 1.3 cgd u_int32_t lfs_nseg; /* number of segments */
122 1.3 cgd u_int32_t lfs_nspf; /* number of sectors per fragment */
123 1.3 cgd u_int32_t lfs_cleansz; /* cleaner info size in blocks */
124 1.3 cgd u_int32_t lfs_segtabsz; /* segment table size in blocks */
125 1.3 cgd
126 1.3 cgd u_int32_t lfs_segmask; /* calculate offset within a segment */
127 1.3 cgd u_int32_t lfs_segshift; /* fast mult/div for segments */
128 1.3 cgd u_int32_t lfs_bmask; /* calc block offset from file offset */
129 1.3 cgd u_int32_t lfs_bshift; /* calc block number from file offset */
130 1.3 cgd u_int32_t lfs_ffmask; /* calc frag offset from file offset */
131 1.3 cgd u_int32_t lfs_ffshift; /* fast mult/div for frag from file */
132 1.3 cgd u_int32_t lfs_fbmask; /* calc frag offset from block offset */
133 1.3 cgd u_int32_t lfs_fbshift; /* fast mult/div for frag from block */
134 1.3 cgd u_int32_t lfs_fsbtodb; /* fsbtodb and dbtofsb shift constant */
135 1.3 cgd u_int32_t lfs_sushift; /* fast mult/div for segusage table */
136 1.3 cgd
137 1.3 cgd int32_t lfs_maxsymlinklen; /* max length of an internal symlink */
138 1.1 mycroft
139 1.1 mycroft #define LFS_MIN_SBINTERVAL 5 /* minimum superblock segment spacing */
140 1.1 mycroft #define LFS_MAXNUMSB 10 /* superblock disk offsets */
141 1.3 cgd daddr_t lfs_sboffs[LFS_MAXNUMSB];
142 1.3 cgd
143 1.5 mycroft /* Checksum -- last valid disk field. */
144 1.3 cgd u_int32_t lfs_cksum; /* checksum for superblock checking */
145 1.1 mycroft
146 1.1 mycroft /* These fields are set at mount time and are meaningless on disk. */
147 1.5 mycroft struct segment *lfs_sp; /* current segment being written */
148 1.5 mycroft struct vnode *lfs_ivnode; /* vnode for the ifile */
149 1.5 mycroft u_long lfs_seglock; /* single-thread the segment writer */
150 1.5 mycroft pid_t lfs_lockpid; /* pid of lock holder */
151 1.5 mycroft u_long lfs_iocount; /* number of ios pending */
152 1.5 mycroft u_long lfs_writer; /* don't allow any dirops to start */
153 1.5 mycroft u_long lfs_dirops; /* count of active directory ops */
154 1.5 mycroft u_long lfs_doifile; /* Write ifile blocks on next write */
155 1.5 mycroft u_long lfs_nactive; /* Number of segments since last ckp */
156 1.5 mycroft int8_t lfs_fmod; /* super block modified flag */
157 1.5 mycroft int8_t lfs_clean; /* file system is clean flag */
158 1.5 mycroft int8_t lfs_ronly; /* mounted read-only flag */
159 1.5 mycroft int8_t lfs_flags; /* currently unused flag */
160 1.5 mycroft u_char lfs_fsmnt[MNAMELEN]; /* name mounted on */
161 1.4 mycroft
162 1.5 mycroft int32_t lfs_pad[40]; /* round to 512 bytes */
163 1.1 mycroft };
164 1.1 mycroft
165 1.1 mycroft /*
166 1.3 cgd * Inode 0: out-of-band inode number
167 1.3 cgd * Inode 1: IFILE inode number
168 1.3 cgd * Inode 2: root inode
169 1.3 cgd * Inode 3: lost+found inode number
170 1.1 mycroft */
171 1.1 mycroft #define LFS_UNUSED_INUM 0 /* out of band inode number */
172 1.1 mycroft #define LFS_IFILE_INUM 1 /* IFILE inode number */
173 1.1 mycroft #define LOSTFOUNDINO 3 /* lost+found inode number */
174 1.1 mycroft #define LFS_FIRST_INUM 4 /* first free inode number */
175 1.1 mycroft
176 1.1 mycroft /* Address calculations for metadata located in the inode */
177 1.1 mycroft #define S_INDIR(fs) -NDADDR
178 1.1 mycroft #define D_INDIR(fs) (S_INDIR(fs) - NINDIR(fs) - 1)
179 1.1 mycroft #define T_INDIR(fs) (D_INDIR(fs) - NINDIR(fs) * NINDIR(fs) - 1)
180 1.1 mycroft
181 1.1 mycroft /* Unassigned disk address. */
182 1.1 mycroft #define UNASSIGNED -1
183 1.1 mycroft
184 1.1 mycroft /* Unused logical block number */
185 1.1 mycroft #define LFS_UNUSED_LBN -1
186 1.1 mycroft
187 1.1 mycroft typedef struct ifile IFILE;
188 1.1 mycroft struct ifile {
189 1.3 cgd u_int32_t if_version; /* inode version number */
190 1.1 mycroft #define LFS_UNUSED_DADDR 0 /* out-of-band daddr */
191 1.3 cgd daddr_t if_daddr; /* inode disk address */
192 1.3 cgd ino_t if_nextfree; /* next-unallocated inode */
193 1.1 mycroft };
194 1.1 mycroft
195 1.1 mycroft /*
196 1.1 mycroft * Cleaner information structure. This resides in the ifile and is used
197 1.1 mycroft * to pass information between the cleaner and the kernel.
198 1.1 mycroft */
199 1.1 mycroft typedef struct _cleanerinfo {
200 1.3 cgd u_int32_t clean; /* K: number of clean segments */
201 1.3 cgd u_int32_t dirty; /* K: number of dirty segments */
202 1.1 mycroft } CLEANERINFO;
203 1.1 mycroft
204 1.1 mycroft #define CLEANSIZE_SU(fs) \
205 1.1 mycroft ((sizeof(CLEANERINFO) + (fs)->lfs_bsize - 1) >> (fs)->lfs_bshift)
206 1.1 mycroft
207 1.1 mycroft /*
208 1.1 mycroft * All summary blocks are the same size, so we can always read a summary
209 1.1 mycroft * block easily from a segment.
210 1.1 mycroft */
211 1.1 mycroft #define LFS_SUMMARY_SIZE 512
212 1.1 mycroft
213 1.1 mycroft /* On-disk segment summary information */
214 1.1 mycroft typedef struct segsum SEGSUM;
215 1.1 mycroft struct segsum {
216 1.3 cgd u_int32_t ss_sumsum; /* check sum of summary block */
217 1.3 cgd u_int32_t ss_datasum; /* check sum of data */
218 1.3 cgd daddr_t ss_next; /* next segment */
219 1.3 cgd u_int32_t ss_create; /* creation time stamp */
220 1.3 cgd u_int16_t ss_nfinfo; /* number of file info structures */
221 1.3 cgd u_int16_t ss_ninos; /* number of inodes in summary */
222 1.5 mycroft
223 1.1 mycroft #define SS_DIROP 0x01 /* segment begins a dirop */
224 1.1 mycroft #define SS_CONT 0x02 /* more partials to finish this write*/
225 1.3 cgd u_int16_t ss_flags; /* used for directory operations */
226 1.3 cgd u_int16_t ss_pad; /* extra space */
227 1.1 mycroft /* FINFO's and inode daddr's... */
228 1.1 mycroft };
229 1.1 mycroft
230 1.1 mycroft /* NINDIR is the number of indirects in a file system block. */
231 1.1 mycroft #define NINDIR(fs) ((fs)->lfs_nindir)
232 1.1 mycroft
233 1.1 mycroft /* INOPB is the number of inodes in a secondary storage block. */
234 1.1 mycroft #define INOPB(fs) ((fs)->lfs_inopb)
235 1.1 mycroft
236 1.1 mycroft #define blksize(fs) ((fs)->lfs_bsize)
237 1.1 mycroft #define blkoff(fs, loc) ((loc) & (fs)->lfs_bmask)
238 1.1 mycroft #define fsbtodb(fs, b) ((b) << (fs)->lfs_fsbtodb)
239 1.1 mycroft #define dbtofsb(fs, b) ((b) >> (fs)->lfs_fsbtodb)
240 1.1 mycroft #define lblkno(fs, loc) ((loc) >> (fs)->lfs_bshift)
241 1.1 mycroft #define lblktosize(fs, blk) ((blk) << (fs)->lfs_bshift)
242 1.1 mycroft #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \
243 1.1 mycroft ((loc) >> (fs)->lfs_bshift)
244 1.1 mycroft
245 1.1 mycroft #define datosn(fs, daddr) /* disk address to segment number */ \
246 1.1 mycroft (((daddr) - (fs)->lfs_sboffs[0]) / fsbtodb((fs), (fs)->lfs_ssize))
247 1.1 mycroft #define sntoda(fs, sn) /* segment number to disk address */ \
248 1.1 mycroft ((daddr_t)((sn) * ((fs)->lfs_ssize << (fs)->lfs_fsbtodb) + \
249 1.1 mycroft (fs)->lfs_sboffs[0]))
250 1.1 mycroft
251 1.1 mycroft /* Read in the block with the cleaner info from the ifile. */
252 1.1 mycroft #define LFS_CLEANERINFO(CP, F, BP) { \
253 1.1 mycroft VTOI((F)->lfs_ivnode)->i_flag |= IN_ACCESS; \
254 1.1 mycroft if (bread((F)->lfs_ivnode, \
255 1.1 mycroft (daddr_t)0, (F)->lfs_bsize, NOCRED, &(BP))) \
256 1.1 mycroft panic("lfs: ifile read"); \
257 1.1 mycroft (CP) = (CLEANERINFO *)(BP)->b_data; \
258 1.1 mycroft }
259 1.1 mycroft
260 1.1 mycroft /* Read in the block with a specific inode from the ifile. */
261 1.1 mycroft #define LFS_IENTRY(IP, F, IN, BP) { \
262 1.1 mycroft int _e; \
263 1.1 mycroft VTOI((F)->lfs_ivnode)->i_flag |= IN_ACCESS; \
264 1.1 mycroft if (_e = bread((F)->lfs_ivnode, \
265 1.1 mycroft (IN) / (F)->lfs_ifpb + (F)->lfs_cleansz + (F)->lfs_segtabsz,\
266 1.1 mycroft (F)->lfs_bsize, NOCRED, &(BP))) \
267 1.1 mycroft panic("lfs: ifile read %d", _e); \
268 1.1 mycroft (IP) = (IFILE *)(BP)->b_data + (IN) % (F)->lfs_ifpb; \
269 1.1 mycroft }
270 1.1 mycroft
271 1.1 mycroft /* Read in the block with a specific segment usage entry from the ifile. */
272 1.1 mycroft #define LFS_SEGENTRY(SP, F, IN, BP) { \
273 1.1 mycroft int _e; \
274 1.1 mycroft VTOI((F)->lfs_ivnode)->i_flag |= IN_ACCESS; \
275 1.1 mycroft if (_e = bread((F)->lfs_ivnode, \
276 1.1 mycroft ((IN) >> (F)->lfs_sushift) + (F)->lfs_cleansz, \
277 1.1 mycroft (F)->lfs_bsize, NOCRED, &(BP))) \
278 1.1 mycroft panic("lfs: ifile read: %d", _e); \
279 1.1 mycroft (SP) = (SEGUSE *)(BP)->b_data + ((IN) & (F)->lfs_sepb - 1); \
280 1.1 mycroft }
281 1.1 mycroft
282 1.1 mycroft /*
283 1.1 mycroft * Determine if there is enough room currently available to write db
284 1.1 mycroft * disk blocks. We need enough blocks for the new blocks, the current,
285 1.1 mycroft * inode blocks, a summary block, plus potentially the ifile inode and
286 1.1 mycroft * the segment usage table, plus an ifile page.
287 1.1 mycroft */
288 1.1 mycroft #define LFS_FITS(fs, db) \
289 1.5 mycroft ((int32_t)((db + ((fs)->lfs_uinodes + INOPB((fs))) / \
290 1.5 mycroft INOPB((fs)) + fsbtodb(fs, 1) + LFS_SUMMARY_SIZE / DEV_BSIZE + \
291 1.1 mycroft (fs)->lfs_segtabsz)) < (fs)->lfs_avail)
292 1.1 mycroft
293 1.1 mycroft /* Determine if a buffer belongs to the ifile */
294 1.1 mycroft #define IS_IFILE(bp) (VTOI(bp->b_vp)->i_number == LFS_IFILE_INUM)
295 1.1 mycroft
296 1.1 mycroft /*
297 1.1 mycroft * Structures used by lfs_bmapv and lfs_markv to communicate information
298 1.1 mycroft * about inodes and data blocks.
299 1.1 mycroft */
300 1.1 mycroft typedef struct block_info {
301 1.1 mycroft ino_t bi_inode; /* inode # */
302 1.1 mycroft daddr_t bi_lbn; /* logical block w/in file */
303 1.1 mycroft daddr_t bi_daddr; /* disk address of block */
304 1.1 mycroft time_t bi_segcreate; /* origin segment create time */
305 1.1 mycroft int bi_version; /* file version number */
306 1.1 mycroft void *bi_bp; /* data buffer */
307 1.1 mycroft } BLOCK_INFO;
308 1.1 mycroft
309 1.1 mycroft /* In-memory description of a segment about to be written. */
310 1.1 mycroft struct segment {
311 1.5 mycroft struct lfs *fs; /* file system pointer */
312 1.1 mycroft struct buf **bpp; /* pointer to buffer array */
313 1.1 mycroft struct buf **cbpp; /* pointer to next available bp */
314 1.1 mycroft struct buf **start_bpp; /* pointer to first bp in this set */
315 1.5 mycroft struct buf *ibp; /* buffer pointer to inode page */
316 1.5 mycroft struct finfo *fip; /* current fileinfo pointer */
317 1.5 mycroft struct vnode *vp; /* vnode being gathered */
318 1.3 cgd void *segsum; /* segment summary info */
319 1.3 cgd u_int32_t ninodes; /* number of inodes in this segment */
320 1.3 cgd u_int32_t seg_bytes_left; /* bytes left in segment */
321 1.3 cgd u_int32_t sum_bytes_left; /* bytes left in summary block */
322 1.3 cgd u_int32_t seg_number; /* number of this segment */
323 1.3 cgd daddr_t *start_lbp; /* beginning lbn for this set */
324 1.5 mycroft
325 1.1 mycroft #define SEGM_CKP 0x01 /* doing a checkpoint */
326 1.1 mycroft #define SEGM_CLEAN 0x02 /* cleaner call; don't sort */
327 1.1 mycroft #define SEGM_SYNC 0x04 /* wait for segment */
328 1.5 mycroft u_int16_t seg_flags; /* run-time flags for this segment */
329 1.1 mycroft };
330 1.1 mycroft
331 1.1 mycroft #define ISSPACE(F, BB, C) \
332 1.1 mycroft (((C)->cr_uid == 0 && (F)->lfs_bfree >= (BB)) || \
333 1.1 mycroft ((C)->cr_uid != 0 && IS_FREESPACE(F, BB)))
334 1.1 mycroft
335 1.1 mycroft #define IS_FREESPACE(F, BB) \
336 1.1 mycroft ((F)->lfs_bfree > ((F)->lfs_dsize * (F)->lfs_minfree / 100 + (BB)))
337 1.1 mycroft
338 1.1 mycroft #define ISSPACE_XXX(F, BB) \
339 1.1 mycroft ((F)->lfs_bfree >= (BB))
340 1.1 mycroft
341 1.1 mycroft #define DOSTATS
342 1.1 mycroft #ifdef DOSTATS
343 1.1 mycroft /* Statistics Counters */
344 1.1 mycroft struct lfs_stats {
345 1.5 mycroft u_int segsused;
346 1.5 mycroft u_int psegwrites;
347 1.5 mycroft u_int psyncwrites;
348 1.5 mycroft u_int pcleanwrites;
349 1.5 mycroft u_int blocktot;
350 1.5 mycroft u_int cleanblocks;
351 1.5 mycroft u_int ncheckpoints;
352 1.5 mycroft u_int nwrites;
353 1.5 mycroft u_int nsync_writes;
354 1.5 mycroft u_int wait_exceeded;
355 1.5 mycroft u_int write_exceeded;
356 1.5 mycroft u_int flush_invoked;
357 1.1 mycroft };
358 1.1 mycroft extern struct lfs_stats lfs_stats;
359 1.1 mycroft #endif
360