2 * linux/include/linux/ufs_fs.h
5 * Adrian Rodriguez (adrian@franklins-tower.rutgers.edu)
6 * Laboratory for Computer Science Research Computing Facility
7 * Rutgers, The State University of New Jersey
9 * Clean swab support by Fare <fare@tunes.org>
10 * just hope no one is using NNUUXXI on __?64 structure elements
11 * 64-bit clean thanks to Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13 * 4.4BSD (FreeBSD) support added on February 1st 1998 by
14 * Niels Kristian Bech Jensen <nkbj@image.dk> partially based
15 * on code by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
17 * NeXTstep support added on February 5th 1998 by
18 * Niels Kristian Bech Jensen <nkbj@image.dk>.
20 * Write support by Daniel Pirkl <daniel.pirkl@email.cz>
22 * HP/UX hfs filesystem support added by
23 * Martin K. Petersen <mkp@mkp.net>, August 1999
27 #ifndef __LINUX_UFS_FS_H
28 #define __LINUX_UFS_FS_H
30 #include <linux/types.h>
31 #include <linux/kernel.h>
32 #include <linux/time.h>
33 #include <linux/stat.h>
36 #define UFS_BBSIZE 8192
37 #define UFS_SBLOCK 8192
38 #define UFS_SBSIZE 8192
40 #define UFS_SECTOR_SIZE 512
41 #define UFS_SECTOR_BITS 9
42 #define UFS_MAGIC 0x00011954
43 #define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
46 /* HP specific MAGIC values */
48 #define UFS_MAGIC_LFN 0x00095014 /* fs supports filenames > 14 chars */
49 #define UFS_CIGAM_LFN 0x14500900 /* srahc 41 < semanelif stroppus sf */
51 #define UFS_MAGIC_SEC 0x00612195 /* B1 security fs */
52 #define UFS_CIGAM_SEC 0x95216100
54 #define UFS_MAGIC_FEA 0x00195612 /* fs_featurebits supported */
55 #define UFS_CIGAM_FEA 0x12561900
57 #define UFS_MAGIC_4GB 0x05231994 /* fs > 4 GB && fs_featurebits */
58 #define UFS_CIGAM_4GB 0x94192305
60 /* Seems somebody at HP goofed here. B1 and lfs are both 0x2 !?! */
61 #define UFS_FSF_LFN 0x00000001 /* long file names */
62 #define UFS_FSF_B1 0x00000002 /* B1 security */
63 #define UFS_FSF_LFS 0x00000002 /* large files */
64 #define UFS_FSF_LUID 0x00000004 /* large UIDs */
69 #define UFS_BSIZE 8192
70 #define UFS_MINBSIZE 4096
71 #define UFS_FSIZE 1024
72 #define UFS_MAXFRAG (UFS_BSIZE / UFS_FSIZE)
77 #define UFS_IND_BLOCK (UFS_NDADDR + 0)
78 #define UFS_DIND_BLOCK (UFS_NDADDR + 1)
79 #define UFS_TIND_BLOCK (UFS_NDADDR + 2)
81 #define UFS_NDIR_FRAGMENT (UFS_NDADDR << uspi->s_fpbshift)
82 #define UFS_IND_FRAGMENT (UFS_IND_BLOCK << uspi->s_fpbshift)
83 #define UFS_DIND_FRAGMENT (UFS_DIND_BLOCK << uspi->s_fpbshift)
84 #define UFS_TIND_FRAGMENT (UFS_TIND_BLOCK << uspi->s_fpbshift)
87 #define UFS_FIRST_INO (UFS_ROOTINO + 1)
89 #define UFS_USEEFT ((__u16)65535)
91 #define UFS_FSOK 0x7c269d38
92 #define UFS_FSACTIVE ((char)0x00)
93 #define UFS_FSCLEAN ((char)0x01)
94 #define UFS_FSSTABLE ((char)0x02)
95 #define UFS_FSOSF1 ((char)0x03) /* is this correct for DEC OSF/1? */
96 #define UFS_FSBAD ((char)0xff)
98 /* From here to next blank line, s_flags for ufs_sb_info */
100 #define UFS_BYTESEX 0x00000001 /* mask; leave room to 0xF */
101 #if defined(__LITTLE_ENDIAN) || defined(__BIG_ENDIAN)
102 /* these are for sane architectures */
103 #define UFS_NATIVE_ENDIAN 0x00000000
104 #define UFS_SWABBED_ENDIAN 0x00000001
106 /* these are for pervert architectures */
107 #define UFS_LITTLE_ENDIAN 0x00000000
108 #define UFS_BIG_ENDIAN 0x00000001
110 /* directory entry encoding */
111 #define UFS_DE_MASK 0x00000010 /* mask for the following */
112 #define UFS_DE_OLD 0x00000000
113 #define UFS_DE_44BSD 0x00000010
115 #define UFS_UID_MASK 0x00000060 /* mask for the following */
116 #define UFS_UID_OLD 0x00000000
117 #define UFS_UID_44BSD 0x00000020
118 #define UFS_UID_EFT 0x00000040
119 /* superblock state encoding */
120 #define UFS_ST_MASK 0x00000700 /* mask for the following */
121 #define UFS_ST_OLD 0x00000000
122 #define UFS_ST_44BSD 0x00000100
123 #define UFS_ST_SUN 0x00000200
124 #define UFS_ST_SUNx86 0x00000400
125 /*cylinder group encoding */
126 #define UFS_CG_MASK 0x00003000 /* mask for the following */
127 #define UFS_CG_OLD 0x00000000
128 #define UFS_CG_44BSD 0x00002000
129 #define UFS_CG_SUN 0x00001000
131 /* fs_inodefmt options */
132 #define UFS_42INODEFMT -1
133 #define UFS_44INODEFMT 2
136 #define UFS_MOUNT_ONERROR 0x0000000F
137 #define UFS_MOUNT_ONERROR_PANIC 0x00000001
138 #define UFS_MOUNT_ONERROR_LOCK 0x00000002
139 #define UFS_MOUNT_ONERROR_UMOUNT 0x00000004
140 #define UFS_MOUNT_ONERROR_REPAIR 0x00000008
142 #define UFS_MOUNT_UFSTYPE 0x00000FF0
143 #define UFS_MOUNT_UFSTYPE_OLD 0x00000010
144 #define UFS_MOUNT_UFSTYPE_44BSD 0x00000020
145 #define UFS_MOUNT_UFSTYPE_SUN 0x00000040
146 #define UFS_MOUNT_UFSTYPE_NEXTSTEP 0x00000080
147 #define UFS_MOUNT_UFSTYPE_NEXTSTEP_CD 0x00000100
148 #define UFS_MOUNT_UFSTYPE_OPENSTEP 0x00000200
149 #define UFS_MOUNT_UFSTYPE_SUNx86 0x00000400
150 #define UFS_MOUNT_UFSTYPE_HP 0x00000800
152 #define ufs_clear_opt(o,opt) o &= ~UFS_MOUNT_##opt
153 #define ufs_set_opt(o,opt) o |= UFS_MOUNT_##opt
154 #define ufs_test_opt(o,opt) ((o) & UFS_MOUNT_##opt)
157 * MINFREE gives the minimum acceptable percentage of file system
158 * blocks which may be free. If the freelist drops below this level
159 * only the superuser may continue to allocate blocks. This may
160 * be set to 0 if no reserve of free blocks is deemed necessary,
161 * however throughput drops by fifty percent if the file system
162 * is run at between 95% and 100% full; thus the minimum default
163 * value of fs_minfree is 5%. However, to get good clustering
164 * performance, 10% is a better choice. hence we use 10% as our
165 * default value. With 10% free space, fragmentation is not a
166 * problem, so we choose to optimize for time.
168 #define UFS_MINFREE 5
169 #define UFS_DEFAULTOPT UFS_OPTTIME
172 * Turn file system block numbers into disk block addresses.
173 * This maps file system blocks to device size blocks.
175 #define ufs_fsbtodb(uspi, b) ((b) << (uspi)->s_fsbtodb)
176 #define ufs_dbtofsb(uspi, b) ((b) >> (uspi)->s_fsbtodb)
179 * Cylinder group macros to locate things in cylinder groups.
180 * They calc file system addresses of cylinder group data structures.
182 #define ufs_cgbase(c) (uspi->s_fpg * (c))
183 #define ufs_cgstart(c) (ufs_cgbase(c) + uspi->s_cgoffset * ((c) & ~uspi->s_cgmask))
184 #define ufs_cgsblock(c) (ufs_cgstart(c) + uspi->s_sblkno) /* super blk */
185 #define ufs_cgcmin(c) (ufs_cgstart(c) + uspi->s_cblkno) /* cg block */
186 #define ufs_cgimin(c) (ufs_cgstart(c) + uspi->s_iblkno) /* inode blk */
187 #define ufs_cgdmin(c) (ufs_cgstart(c) + uspi->s_dblkno) /* 1st data */
190 * Macros for handling inode numbers:
191 * inode number to file system block offset.
192 * inode number to cylinder group number.
193 * inode number to file system block address.
195 #define ufs_inotocg(x) ((x) / uspi->s_ipg)
196 #define ufs_inotocgoff(x) ((x) % uspi->s_ipg)
197 #define ufs_inotofsba(x) (ufs_cgimin(ufs_inotocg(x)) + ufs_inotocgoff(x) / uspi->s_inopf)
198 #define ufs_inotofsbo(x) ((x) % uspi->s_inopf)
201 * Give cylinder group number for a file system block.
202 * Give cylinder group block number for a file system block.
204 #define ufs_dtog(d) ((d) / uspi->s_fpg)
205 #define ufs_dtogd(d) ((d) % uspi->s_fpg)
208 * Compute the cylinder and rotational position of a cyl block addr.
210 #define ufs_cbtocylno(bno) \
211 ((bno) * uspi->s_nspf / uspi->s_spc)
212 #define ufs_cbtorpos(bno) \
213 ((((bno) * uspi->s_nspf % uspi->s_spc / uspi->s_nsect \
214 * uspi->s_trackskew + (bno) * uspi->s_nspf % uspi->s_spc \
215 % uspi->s_nsect * uspi->s_interleave) % uspi->s_nsect \
216 * uspi->s_nrpos) / uspi->s_npsect)
219 * The following macros optimize certain frequently calculated
220 * quantities by using shifts and masks in place of divisions
221 * modulos and multiplications.
223 #define ufs_blkoff(loc) ((loc) & uspi->s_qbmask)
224 #define ufs_fragoff(loc) ((loc) & uspi->s_qfmask)
225 #define ufs_lblktosize(blk) ((blk) << uspi->s_bshift)
226 #define ufs_lblkno(loc) ((loc) >> uspi->s_bshift)
227 #define ufs_numfrags(loc) ((loc) >> uspi->s_fshift)
228 #define ufs_blkroundup(size) (((size) + uspi->s_qbmask) & uspi->s_bmask)
229 #define ufs_fragroundup(size) (((size) + uspi->s_qfmask) & uspi->s_fmask)
230 #define ufs_fragstoblks(frags) ((frags) >> uspi->s_fpbshift)
231 #define ufs_blkstofrags(blks) ((blks) << uspi->s_fpbshift)
232 #define ufs_fragnum(fsb) ((fsb) & uspi->s_fpbmask)
233 #define ufs_blknum(fsb) ((fsb) & ~uspi->s_fpbmask)
235 #define UFS_MAXNAMLEN 255
236 #define UFS_MAXMNTLEN 512
237 #define UFS_MAXCSBUFS 31
238 #define UFS_LINK_MAX 32000
241 * UFS_DIR_PAD defines the directory entries boundaries
242 * (must be a multiple of 4)
244 #define UFS_DIR_PAD 4
245 #define UFS_DIR_ROUND (UFS_DIR_PAD - 1)
246 #define UFS_DIR_REC_LEN(name_len) (((name_len) + 1 + 8 + UFS_DIR_ROUND) & ~UFS_DIR_ROUND)
253 struct ufs_dir_entry
{
254 __u32 d_ino
; /* inode number of this entry */
255 __u16 d_reclen
; /* length of this entry */
257 __u16 d_namlen
; /* actual length of d_name */
259 __u8 d_type
; /* file type */
260 __u8 d_namlen
; /* length of string in d_name */
263 __u8 d_name
[UFS_MAXNAMLEN
+ 1]; /* file name */
267 __u32 cs_ndir
; /* number of directories */
268 __u32 cs_nbfree
; /* number of free blocks */
269 __u32 cs_nifree
; /* number of free inodes */
270 __u32 cs_nffree
; /* number of free frags */
274 * This is the actual superblock, as it is laid out on the disk.
276 struct ufs_super_block
{
277 __u32 fs_link
; /* UNUSED */
278 __u32 fs_rlink
; /* UNUSED */
279 __u32 fs_sblkno
; /* addr of super-block in filesys */
280 __u32 fs_cblkno
; /* offset of cyl-block in filesys */
281 __u32 fs_iblkno
; /* offset of inode-blocks in filesys */
282 __u32 fs_dblkno
; /* offset of first data after cg */
283 __u32 fs_cgoffset
; /* cylinder group offset in cylinder */
284 __u32 fs_cgmask
; /* used to calc mod fs_ntrak */
285 __u32 fs_time
; /* last time written -- time_t */
286 __u32 fs_size
; /* number of blocks in fs */
287 __u32 fs_dsize
; /* number of data blocks in fs */
288 __u32 fs_ncg
; /* number of cylinder groups */
289 __u32 fs_bsize
; /* size of basic blocks in fs */
290 __u32 fs_fsize
; /* size of frag blocks in fs */
291 __u32 fs_frag
; /* number of frags in a block in fs */
292 /* these are configuration parameters */
293 __u32 fs_minfree
; /* minimum percentage of free blocks */
294 __u32 fs_rotdelay
; /* num of ms for optimal next block */
295 __u32 fs_rps
; /* disk revolutions per second */
296 /* these fields can be computed from the others */
297 __u32 fs_bmask
; /* ``blkoff'' calc of blk offsets */
298 __u32 fs_fmask
; /* ``fragoff'' calc of frag offsets */
299 __u32 fs_bshift
; /* ``lblkno'' calc of logical blkno */
300 __u32 fs_fshift
; /* ``numfrags'' calc number of frags */
301 /* these are configuration parameters */
302 __u32 fs_maxcontig
; /* max number of contiguous blks */
303 __u32 fs_maxbpg
; /* max number of blks per cyl group */
304 /* these fields can be computed from the others */
305 __u32 fs_fragshift
; /* block to frag shift */
306 __u32 fs_fsbtodb
; /* fsbtodb and dbtofsb shift constant */
307 __u32 fs_sbsize
; /* actual size of super block */
308 __u32 fs_csmask
; /* csum block offset */
309 __u32 fs_csshift
; /* csum block number */
310 __u32 fs_nindir
; /* value of NINDIR */
311 __u32 fs_inopb
; /* value of INOPB */
312 __u32 fs_nspf
; /* value of NSPF */
313 /* yet another configuration parameter */
314 __u32 fs_optim
; /* optimization preference, see below */
315 /* these fields are derived from the hardware */
318 __u32 fs_npsect
; /* # sectors/track including spares */
321 __s32 fs_state
; /* file system state time stamp */
324 __u32 fs_interleave
; /* hardware sector interleave */
325 __u32 fs_trackskew
; /* sector 0 skew, per track */
326 /* a unique id for this filesystem (currently unused and unmaintained) */
327 /* In 4.3 Tahoe this space is used by fs_headswitch and fs_trkseek */
328 /* Neither of those fields is used in the Tahoe code right now but */
329 /* there could be problems if they are. */
330 __u32 fs_id
[2]; /* file system id */
331 /* sizes determined by number of cylinder groups and their sizes */
332 __u32 fs_csaddr
; /* blk addr of cyl grp summary area */
333 __u32 fs_cssize
; /* size of cyl grp summary area */
334 __u32 fs_cgsize
; /* cylinder group size */
335 /* these fields are derived from the hardware */
336 __u32 fs_ntrak
; /* tracks per cylinder */
337 __u32 fs_nsect
; /* sectors per track */
338 __u32 fs_spc
; /* sectors per cylinder */
339 /* this comes from the disk driver partitioning */
340 __u32 fs_ncyl
; /* cylinders in file system */
341 /* these fields can be computed from the others */
342 __u32 fs_cpg
; /* cylinders per group */
343 __u32 fs_ipg
; /* inodes per group */
344 __u32 fs_fpg
; /* blocks per group * fs_frag */
345 /* this data must be re-computed after crashes */
346 struct ufs_csum fs_cstotal
; /* cylinder summary information */
347 /* these fields are cleared at mount time */
348 __s8 fs_fmod
; /* super block modified flag */
349 __s8 fs_clean
; /* file system is clean flag */
350 __s8 fs_ronly
; /* mounted read-only flag */
351 __s8 fs_flags
; /* currently unused flag */
352 __s8 fs_fsmnt
[UFS_MAXMNTLEN
]; /* name mounted on */
353 /* these fields retain the current block allocation info */
354 __u32 fs_cgrotor
; /* last cg searched */
355 __u32 fs_csp
[UFS_MAXCSBUFS
]; /* list of fs_cs info buffers */
357 __u32 fs_cpc
; /* cyl per cycle in postbl */
358 __u16 fs_opostbl
[16][8]; /* old rotation block list head */
361 __s32 fs_sparecon
[53];/* reserved for future constants */
363 __s32 fs_sparecon2
[1];
364 __s32 fs_state
; /* file system state time stamp */
365 __u32 fs_qbmask
[2]; /* ~usb_bmask */
366 __u32 fs_qfmask
[2]; /* ~usb_fmask */
369 __s32 fs_sparecon
[53];/* reserved for future constants */
371 __s32 fs_sparecon2
[1];
372 __u32 fs_npsect
; /* # sectors/track including spares */
373 __u32 fs_qbmask
[2]; /* ~usb_bmask */
374 __u32 fs_qfmask
[2]; /* ~usb_fmask */
377 __s32 fs_sparecon
[50];/* reserved for future constants */
378 __s32 fs_contigsumsize
;/* size of cluster summary array */
379 __s32 fs_maxsymlinklen
;/* max length of an internal symlink */
380 __s32 fs_inodefmt
; /* format of on-disk inodes */
381 __u32 fs_maxfilesize
[2]; /* max representable file size */
382 __u32 fs_qbmask
[2]; /* ~usb_bmask */
383 __u32 fs_qfmask
[2]; /* ~usb_fmask */
384 __s32 fs_state
; /* file system state time stamp */
387 __s32 fs_postblformat
; /* format of positional layout tables */
388 __s32 fs_nrpos
; /* number of rotational positions */
389 __s32 fs_postbloff
; /* (__s16) rotation block list head */
390 __s32 fs_rotbloff
; /* (__u8) blocks for each rotation */
391 __s32 fs_magic
; /* magic number */
392 __u8 fs_space
[1]; /* list of blocks for each rotation */
396 * Preference for optimization.
398 #define UFS_OPTTIME 0 /* minimize allocation time */
399 #define UFS_OPTSPACE 1 /* minimize disk fragmentation */
402 * Rotational layout table format types
404 #define UFS_42POSTBLFMT -1 /* 4.2BSD rotational table format */
405 #define UFS_DYNAMICPOSTBLFMT 1 /* dynamic rotational table format */
408 * Convert cylinder group to base address of its global summary info.
410 #define fs_cs(indx) \
411 u.ufs_sb.s_csp[(indx) >> uspi->s_csshift][(indx) & ~uspi->s_csmask]
414 * Cylinder group block for a file system.
416 * Writable fields in the cylinder group are protected by the associated
417 * super block lock fs->fs_lock.
419 #define CG_MAGIC 0x090255
420 #define ufs_cg_chkmagic(ucg) (SWAB32((ucg)->cg_magic) == CG_MAGIC)
423 * size of this structure is 172 B
425 struct ufs_cylinder_group
{
426 __u32 cg_link
; /* linked list of cyl groups */
427 __u32 cg_magic
; /* magic number */
428 __u32 cg_time
; /* time last written */
429 __u32 cg_cgx
; /* we are the cgx'th cylinder group */
430 __u16 cg_ncyl
; /* number of cyl's this cg */
431 __u16 cg_niblk
; /* number of inode blocks this cg */
432 __u32 cg_ndblk
; /* number of data blocks this cg */
433 struct ufs_csum cg_cs
; /* cylinder summary information */
434 __u32 cg_rotor
; /* position of last used block */
435 __u32 cg_frotor
; /* position of last used frag */
436 __u32 cg_irotor
; /* position of last used inode */
437 __u32 cg_frsum
[UFS_MAXFRAG
]; /* counts of available frags */
438 __u32 cg_btotoff
; /* (__u32) block totals per cylinder */
439 __u32 cg_boff
; /* (short) free block positions */
440 __u32 cg_iusedoff
; /* (char) used inode map */
441 __u32 cg_freeoff
; /* (u_char) free block map */
442 __u32 cg_nextfreeoff
; /* (u_char) next available space */
445 __u32 cg_clustersumoff
; /* (u_int32) counts of avail clusters */
446 __u32 cg_clusteroff
; /* (u_int8) free cluster map */
447 __u32 cg_nclusterblks
; /* number of clusters this cg */
448 __u32 cg_sparecon
[13]; /* reserved for future use */
450 __u32 cg_sparecon
[16]; /* reserved for future use */
452 __u8 cg_space
[1]; /* space for cylinder group maps */
453 /* actually longer */
457 * structure of an on-disk inode
460 __u16 ui_mode
; /* 0x0 */
461 __u16 ui_nlink
; /* 0x2 */
464 __u16 ui_suid
; /* 0x4 */
465 __u16 ui_sgid
; /* 0x6 */
467 __u32 ui_inumber
; /* 0x4 lsf: inode number */
468 __u32 ui_author
; /* 0x4 GNU HURD: author */
470 __u64 ui_size
; /* 0x8 */
471 struct ufs_timeval ui_atime
; /* 0x10 access */
472 struct ufs_timeval ui_mtime
; /* 0x18 modification */
473 struct ufs_timeval ui_ctime
; /* 0x20 creation */
476 __u32 ui_db
[UFS_NDADDR
];/* 0x28 data blocks */
477 __u32 ui_ib
[UFS_NINDIR
];/* 0x58 indirect blocks */
479 __u8 ui_symlink
[4*(UFS_NDADDR
+UFS_NINDIR
)];/* 0x28 fast symlink */
481 __u32 ui_flags
; /* 0x64 immutable, append-only... */
482 __u32 ui_blocks
; /* 0x68 blocks in use */
483 __u32 ui_gen
; /* 0x6c like ext2 i_version, for NFS support */
486 __u32 ui_shadow
; /* 0x70 shadow inode with security data */
487 __u32 ui_uid
; /* 0x74 long EFT version of uid */
488 __u32 ui_gid
; /* 0x78 long EFT version of gid */
489 __u32 ui_oeftflag
; /* 0x7c reserved */
492 __u32 ui_uid
; /* 0x70 File owner */
493 __u32 ui_gid
; /* 0x74 File group */
494 __s32 ui_spare
[2]; /* 0x78 reserved */
497 __u32 ui_uid
; /* 0x70 */
498 __u32 ui_gid
; /* 0x74 */
499 __u16 ui_modeh
; /* 0x78 mode high bits */
500 __u16 ui_spare
; /* 0x7A unused */
501 __u32 ui_trans
; /* 0x7c filesystem translator */
506 /* FreeBSD has these in sys/stat.h */
507 /* ui_flags that can be set by a file owner */
508 #define UFS_UF_SETTABLE 0x0000ffff
509 #define UFS_UF_NODUMP 0x00000001 /* do not dump */
510 #define UFS_UF_IMMUTABLE 0x00000002 /* immutable (can't "change") */
511 #define UFS_UF_APPEND 0x00000004 /* append-only */
512 #define UFS_UF_OPAQUE 0x00000008 /* directory is opaque (unionfs) */
513 #define UFS_UF_NOUNLINK 0x00000010 /* can't be removed or renamed */
514 /* ui_flags that only root can set */
515 #define UFS_SF_SETTABLE 0xffff0000
516 #define UFS_SF_ARCHIVED 0x00010000 /* archived */
517 #define UFS_SF_IMMUTABLE 0x00020000 /* immutable (can't "change") */
518 #define UFS_SF_APPEND 0x00040000 /* append-only */
519 #define UFS_SF_NOUNLINK 0x00100000 /* can't be removed or renamed */
524 extern void ufs_free_fragments (struct inode
*, unsigned, unsigned);
525 extern void ufs_free_blocks (struct inode
*, unsigned, unsigned);
526 extern unsigned ufs_new_fragments (struct inode
*, u32
*, unsigned, unsigned, unsigned, int *);
529 extern struct ufs_cg_private_info
* ufs_load_cylinder (struct super_block
*, unsigned);
530 extern void ufs_put_cylinder (struct super_block
*, unsigned);
533 extern struct inode_operations ufs_dir_inode_operations
;
534 extern int ufs_check_dir_entry (const char *, struct inode
*, struct ufs_dir_entry
*, struct buffer_head
*, unsigned long);
537 extern struct inode_operations ufs_file_inode_operations
;
538 extern struct file_operations ufs_file_operations
;
540 extern struct address_space_operations ufs_aops
;
543 extern void ufs_free_inode (struct inode
*inode
);
544 extern struct inode
* ufs_new_inode (const struct inode
*, int, int *);
547 extern int ufs_frag_map (struct inode
*, int);
548 extern void ufs_read_inode (struct inode
*);
549 extern void ufs_put_inode (struct inode
*);
550 extern void ufs_write_inode (struct inode
*, int);
551 extern int ufs_sync_inode (struct inode
*);
552 extern void ufs_delete_inode (struct inode
*);
553 extern struct buffer_head
* ufs_getfrag (struct inode
*, unsigned, int, int *);
554 extern struct buffer_head
* ufs_bread (struct inode
*, unsigned, int, int *);
557 extern struct file_operations ufs_dir_operations
;
560 extern struct file_system_type ufs_fs_type
;
561 extern void ufs_warning (struct super_block
*, const char *, const char *, ...) __attribute__ ((format (printf
, 3, 4)));
562 extern void ufs_error (struct super_block
*, const char *, const char *, ...) __attribute__ ((format (printf
, 3, 4)));
563 extern void ufs_panic (struct super_block
*, const char *, const char *, ...) __attribute__ ((format (printf
, 3, 4)));
564 extern void ufs_write_super (struct super_block
*);
567 extern struct inode_operations ufs_fast_symlink_inode_operations
;
570 extern void ufs_truncate (struct inode
*);
572 #endif /* __KERNEL__ */
574 #endif /* __LINUX_UFS_FS_H */