Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
ufs_fs.h File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/stat.h>
#include <linux/fs.h>
#include <linux/workqueue.h>
#include <asm/div64.h>

Go to the source code of this file.

Data Structures

struct  ufs_timeval
 
struct  ufs_dir_entry
 
struct  ufs_csum
 
struct  ufs2_csum_total
 
struct  ufs_csum_core
 
struct  ufs_cylinder_group
 
struct  ufs_old_cylinder_group
 
struct  ufs_inode
 
struct  ufs2_inode
 
struct  ufs_buffer_head
 
struct  ufs_cg_private_info
 
struct  ufs_sb_private_info
 
struct  ufs_super_block_first
 
struct  ufs_super_block_second
 
struct  ufs_super_block_third
 

Macros

#define UFS_BBLOCK   0
 
#define UFS_BBSIZE   8192
 
#define UFS_SBLOCK   8192
 
#define UFS_SBSIZE   8192
 
#define UFS_SECTOR_SIZE   512
 
#define UFS_SECTOR_BITS   9
 
#define UFS_MAGIC   0x00011954
 
#define UFS_MAGIC_BW   0x0f242697
 
#define UFS2_MAGIC   0x19540119
 
#define UFS_CIGAM   0x54190100 /* byteswapped MAGIC */
 
#define SBLOCK_FLOPPY   0
 
#define SBLOCK_UFS1   8192
 
#define SBLOCK_UFS2   65536
 
#define SBLOCK_PIGGY   262144
 
#define SBLOCKSIZE   8192
 
#define SBLOCKSEARCH   { SBLOCK_UFS2, SBLOCK_UFS1, SBLOCK_FLOPPY, SBLOCK_PIGGY, -1 }
 
#define UFS_MAGIC_LFN   0x00095014 /* fs supports filenames > 14 chars */
 
#define UFS_CIGAM_LFN   0x14500900 /* srahc 41 < semanelif stroppus sf */
 
#define UFS_MAGIC_SEC   0x00612195 /* B1 security fs */
 
#define UFS_CIGAM_SEC   0x95216100
 
#define UFS_MAGIC_FEA   0x00195612 /* fs_featurebits supported */
 
#define UFS_CIGAM_FEA   0x12561900
 
#define UFS_MAGIC_4GB   0x05231994 /* fs > 4 GB && fs_featurebits */
 
#define UFS_CIGAM_4GB   0x94192305
 
#define UFS_FSF_LFN   0x00000001 /* long file names */
 
#define UFS_FSF_B1   0x00000002 /* B1 security */
 
#define UFS_FSF_LFS   0x00000002 /* large files */
 
#define UFS_FSF_LUID   0x00000004 /* large UIDs */
 
#define UFS_BSIZE   8192
 
#define UFS_MINBSIZE   4096
 
#define UFS_FSIZE   1024
 
#define UFS_MAXFRAG   (UFS_BSIZE / UFS_FSIZE)
 
#define UFS_NDADDR   12
 
#define UFS_NINDIR   3
 
#define UFS_IND_BLOCK   (UFS_NDADDR + 0)
 
#define UFS_DIND_BLOCK   (UFS_NDADDR + 1)
 
#define UFS_TIND_BLOCK   (UFS_NDADDR + 2)
 
#define UFS_NDIR_FRAGMENT   (UFS_NDADDR << uspi->s_fpbshift)
 
#define UFS_IND_FRAGMENT   (UFS_IND_BLOCK << uspi->s_fpbshift)
 
#define UFS_DIND_FRAGMENT   (UFS_DIND_BLOCK << uspi->s_fpbshift)
 
#define UFS_TIND_FRAGMENT   (UFS_TIND_BLOCK << uspi->s_fpbshift)
 
#define UFS_ROOTINO   2
 
#define UFS_FIRST_INO   (UFS_ROOTINO + 1)
 
#define UFS_USEEFT   ((__u16)65535)
 
#define UFS_FSOK   0x7c269d38
 
#define UFS_FSACTIVE   ((__s8)0x00)
 
#define UFS_FSCLEAN   ((__s8)0x01)
 
#define UFS_FSSTABLE   ((__s8)0x02)
 
#define UFS_FSOSF1   ((__s8)0x03) /* is this correct for DEC OSF/1? */
 
#define UFS_FSBAD   ((__s8)0xff)
 
#define UFS_FSSUSPEND   ((__s8)0xfe) /* temporarily suspended */
 
#define UFS_FSLOG   ((__s8)0xfd) /* logging fs */
 
#define UFS_FSFIX   ((__s8)0xfc) /* being repaired while mounted */
 
#define UFS_DE_MASK   0x00000010 /* mask for the following */
 
#define UFS_DE_OLD   0x00000000
 
#define UFS_DE_44BSD   0x00000010
 
#define UFS_UID_MASK   0x00000060 /* mask for the following */
 
#define UFS_UID_OLD   0x00000000
 
#define UFS_UID_44BSD   0x00000020
 
#define UFS_UID_EFT   0x00000040
 
#define UFS_ST_MASK   0x00000700 /* mask for the following */
 
#define UFS_ST_OLD   0x00000000
 
#define UFS_ST_44BSD   0x00000100
 
#define UFS_ST_SUN   0x00000200 /* Solaris */
 
#define UFS_ST_SUNOS   0x00000300
 
#define UFS_ST_SUNx86   0x00000400 /* Solaris x86 */
 
#define UFS_CG_MASK   0x00003000 /* mask for the following */
 
#define UFS_CG_OLD   0x00000000
 
#define UFS_CG_44BSD   0x00002000
 
#define UFS_CG_SUN   0x00001000
 
#define UFS_TYPE_MASK   0x00010000 /* mask for the following */
 
#define UFS_TYPE_UFS1   0x00000000
 
#define UFS_TYPE_UFS2   0x00010000
 
#define UFS_42INODEFMT   -1
 
#define UFS_44INODEFMT   2
 
#define UFS_MINFREE   5
 
#define UFS_DEFAULTOPT   UFS_OPTTIME
 
#define ufs_fsbtodb(uspi, b)   ((b) << (uspi)->s_fsbtodb)
 
#define ufs_dbtofsb(uspi, b)   ((b) >> (uspi)->s_fsbtodb)
 
#define ufs_cgbase(c)   (uspi->s_fpg * (c))
 
#define ufs_cgstart(c)
 
#define ufs_cgsblock(c)   (ufs_cgstart(c) + uspi->s_sblkno) /* super blk */
 
#define ufs_cgcmin(c)   (ufs_cgstart(c) + uspi->s_cblkno) /* cg block */
 
#define ufs_cgimin(c)   (ufs_cgstart(c) + uspi->s_iblkno) /* inode blk */
 
#define ufs_cgdmin(c)   (ufs_cgstart(c) + uspi->s_dblkno) /* 1st data */
 
#define ufs_inotocg(x)   ((x) / uspi->s_ipg)
 
#define ufs_inotocgoff(x)   ((x) % uspi->s_ipg)
 
#define ufs_inotofsba(x)   (((u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf)
 
#define ufs_inotofsbo(x)   ((x) % uspi->s_inopf)
 
#define ufs_cbtocylno(bno)   ((bno) * uspi->s_nspf / uspi->s_spc)
 
#define ufs_cbtorpos(bno)
 
#define ufs_blkoff(loc)   ((loc) & uspi->s_qbmask)
 
#define ufs_fragoff(loc)   ((loc) & uspi->s_qfmask)
 
#define ufs_lblktosize(blk)   ((blk) << uspi->s_bshift)
 
#define ufs_lblkno(loc)   ((loc) >> uspi->s_bshift)
 
#define ufs_numfrags(loc)   ((loc) >> uspi->s_fshift)
 
#define ufs_blkroundup(size)   (((size) + uspi->s_qbmask) & uspi->s_bmask)
 
#define ufs_fragroundup(size)   (((size) + uspi->s_qfmask) & uspi->s_fmask)
 
#define ufs_fragstoblks(frags)   ((frags) >> uspi->s_fpbshift)
 
#define ufs_blkstofrags(blks)   ((blks) << uspi->s_fpbshift)
 
#define ufs_fragnum(fsb)   ((fsb) & uspi->s_fpbmask)
 
#define ufs_blknum(fsb)   ((fsb) & ~uspi->s_fpbmask)
 
#define UFS_MAXNAMLEN   255
 
#define UFS_MAXMNTLEN   512
 
#define UFS2_MAXMNTLEN   468
 
#define UFS2_MAXVOLLEN   32
 
#define UFS_MAXCSBUFS   31
 
#define UFS_LINK_MAX   32000
 
#define UFS2_NOCSPTRS   28
 
#define UFS_DIR_PAD   4
 
#define UFS_DIR_ROUND   (UFS_DIR_PAD - 1)
 
#define UFS_DIR_REC_LEN(name_len)   (((name_len) + 1 + 8 + UFS_DIR_ROUND) & ~UFS_DIR_ROUND)
 
#define UFS_UNCLEAN   0x01 /* file system not clean at mount (unused) */
 
#define UFS_DOSOFTDEP   0x02 /* file system using soft dependencies */
 
#define UFS_NEEDSFSCK   0x04 /* needs sync fsck (FreeBSD compat, unused) */
 
#define UFS_INDEXDIRS   0x08 /* kernel supports indexed directories */
 
#define UFS_ACLS   0x10 /* file system has ACLs enabled */
 
#define UFS_MULTILABEL   0x20 /* file system is MAC multi-label */
 
#define UFS_FLAGS_UPDATED   0x80 /* flags have been moved to new location */
 
#define UFS_OPTTIME   0 /* minimize allocation time */
 
#define UFS_OPTSPACE   1 /* minimize disk fragmentation */
 
#define UFS_42POSTBLFMT   -1 /* 4.2BSD rotational table format */
 
#define UFS_DYNAMICPOSTBLFMT   1 /* dynamic rotational table format */
 
#define fs_cs(indx)   s_csp[(indx)]
 
#define CG_MAGIC   0x090255
 
#define ufs_cg_chkmagic(sb, ucg)   (fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)
 
#define ufs_ocg_blktot(sb, ucg)   fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_btot)
 
#define ufs_ocg_blks(sb, ucg, cylno)   fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_b[cylno])
 
#define ufs_ocg_inosused(sb, ucg)   fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_iused)
 
#define ufs_ocg_blksfree(sb, ucg)   fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_free)
 
#define ufs_ocg_chkmagic(sb, ucg)   (fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)
 
#define UFS_NXADDR   2 /* External addresses in inode. */
 
#define UFS_UF_SETTABLE   0x0000ffff
 
#define UFS_UF_NODUMP   0x00000001 /* do not dump */
 
#define UFS_UF_IMMUTABLE   0x00000002 /* immutable (can't "change") */
 
#define UFS_UF_APPEND   0x00000004 /* append-only */
 
#define UFS_UF_OPAQUE   0x00000008 /* directory is opaque (unionfs) */
 
#define UFS_UF_NOUNLINK   0x00000010 /* can't be removed or renamed */
 
#define UFS_SF_SETTABLE   0xffff0000
 
#define UFS_SF_ARCHIVED   0x00010000 /* archived */
 
#define UFS_SF_IMMUTABLE   0x00020000 /* immutable (can't "change") */
 
#define UFS_SF_APPEND   0x00040000 /* append-only */
 
#define UFS_SF_NOUNLINK   0x00100000 /* can't be removed or renamed */
 

Typedefs

typedef __u64 __bitwise __fs64
 
typedef __u32 __bitwise __fs32
 
typedef __u16 __bitwise __fs16
 

Variables

__fs64 cs_nifree
 
__fs64 cs_nffree
 
__fs64 cs_numclusters
 
__fs64 cs_spare [3]
 
struct ufs_timeval fs_time
 
__fs64 fs_size
 
__fs64 fs_dsize
 
__fs64 fs_csaddr
 
__fs64 fs_pendingblocks
 
__fs32 fs_pendinginodes
 

Macro Definition Documentation

#define CG_MAGIC   0x090255

Definition at line 520 of file ufs_fs.h.

#define fs_cs (   indx)    s_csp[(indx)]

Definition at line 512 of file ufs_fs.h.

#define SBLOCK_FLOPPY   0

Definition at line 89 of file ufs_fs.h.

#define SBLOCK_PIGGY   262144

Definition at line 92 of file ufs_fs.h.

#define SBLOCK_UFS1   8192

Definition at line 90 of file ufs_fs.h.

#define SBLOCK_UFS2   65536

Definition at line 91 of file ufs_fs.h.

#define SBLOCKSEARCH   { SBLOCK_UFS2, SBLOCK_UFS1, SBLOCK_FLOPPY, SBLOCK_PIGGY, -1 }

Definition at line 94 of file ufs_fs.h.

#define SBLOCKSIZE   8192

Definition at line 93 of file ufs_fs.h.

#define UFS2_MAGIC   0x19540119

Definition at line 53 of file ufs_fs.h.

#define UFS2_MAXMNTLEN   468

Definition at line 268 of file ufs_fs.h.

#define UFS2_MAXVOLLEN   32

Definition at line 269 of file ufs_fs.h.

#define UFS2_NOCSPTRS   28

Definition at line 275 of file ufs_fs.h.

#define UFS_42INODEFMT   -1

Definition at line 185 of file ufs_fs.h.

#define UFS_42POSTBLFMT   -1 /* 4.2BSD rotational table format */

Definition at line 506 of file ufs_fs.h.

#define UFS_44INODEFMT   2

Definition at line 186 of file ufs_fs.h.

#define UFS_ACLS   0x10 /* file system has ACLs enabled */

Definition at line 333 of file ufs_fs.h.

#define UFS_BBLOCK   0

Definition at line 44 of file ufs_fs.h.

#define UFS_BBSIZE   8192

Definition at line 45 of file ufs_fs.h.

#define ufs_blknum (   fsb)    ((fsb) & ~uspi->s_fpbmask)

Definition at line 264 of file ufs_fs.h.

#define ufs_blkoff (   loc)    ((loc) & uspi->s_qbmask)

Definition at line 254 of file ufs_fs.h.

#define ufs_blkroundup (   size)    (((size) + uspi->s_qbmask) & uspi->s_bmask)

Definition at line 259 of file ufs_fs.h.

#define ufs_blkstofrags (   blks)    ((blks) << uspi->s_fpbshift)

Definition at line 262 of file ufs_fs.h.

#define UFS_BSIZE   8192

Definition at line 121 of file ufs_fs.h.

#define ufs_cbtocylno (   bno)    ((bno) * uspi->s_nspf / uspi->s_spc)

Definition at line 236 of file ufs_fs.h.

#define ufs_cbtorpos (   bno)
Value:
((UFS_SB(sb)->s_flags & UFS_CG_SUN) ? \
(((((bno) * uspi->s_nspf % uspi->s_spc) % \
uspi->s_nsect) * \
uspi->s_nrpos) / uspi->s_nsect) \
: \
((((bno) * uspi->s_nspf % uspi->s_spc / uspi->s_nsect \
* uspi->s_trackskew + (bno) * uspi->s_nspf % uspi->s_spc \
% uspi->s_nsect * uspi->s_interleave) % uspi->s_nsect \
* uspi->s_nrpos) / uspi->s_npsect))

Definition at line 238 of file ufs_fs.h.

#define UFS_CG_44BSD   0x00002000

Definition at line 176 of file ufs_fs.h.

#define ufs_cg_chkmagic (   sb,
  ucg 
)    (fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)

Definition at line 521 of file ufs_fs.h.

#define UFS_CG_MASK   0x00003000 /* mask for the following */

Definition at line 174 of file ufs_fs.h.

#define UFS_CG_OLD   0x00000000

Definition at line 175 of file ufs_fs.h.

#define UFS_CG_SUN   0x00001000

Definition at line 177 of file ufs_fs.h.

#define ufs_cgbase (   c)    (uspi->s_fpg * (c))

Definition at line 214 of file ufs_fs.h.

#define ufs_cgcmin (   c)    (ufs_cgstart(c) + uspi->s_cblkno) /* cg block */

Definition at line 218 of file ufs_fs.h.

#define ufs_cgdmin (   c)    (ufs_cgstart(c) + uspi->s_dblkno) /* 1st data */

Definition at line 220 of file ufs_fs.h.

#define ufs_cgimin (   c)    (ufs_cgstart(c) + uspi->s_iblkno) /* inode blk */

Definition at line 219 of file ufs_fs.h.

#define ufs_cgsblock (   c)    (ufs_cgstart(c) + uspi->s_sblkno) /* super blk */

Definition at line 217 of file ufs_fs.h.

#define ufs_cgstart (   c)
Value:
((uspi)->fs_magic == UFS2_MAGIC ? ufs_cgbase(c) : \
(ufs_cgbase(c) + uspi->s_cgoffset * ((c) & ~uspi->s_cgmask)))

Definition at line 215 of file ufs_fs.h.

#define UFS_CIGAM   0x54190100 /* byteswapped MAGIC */

Definition at line 54 of file ufs_fs.h.

#define UFS_CIGAM_4GB   0x94192305

Definition at line 110 of file ufs_fs.h.

#define UFS_CIGAM_FEA   0x12561900

Definition at line 107 of file ufs_fs.h.

#define UFS_CIGAM_LFN   0x14500900 /* srahc 41 < semanelif stroppus sf */

Definition at line 101 of file ufs_fs.h.

#define UFS_CIGAM_SEC   0x95216100

Definition at line 104 of file ufs_fs.h.

#define ufs_dbtofsb (   uspi,
  b 
)    ((b) >> (uspi)->s_fsbtodb)

Definition at line 208 of file ufs_fs.h.

#define UFS_DE_44BSD   0x00000010

Definition at line 160 of file ufs_fs.h.

#define UFS_DE_MASK   0x00000010 /* mask for the following */

Definition at line 158 of file ufs_fs.h.

#define UFS_DE_OLD   0x00000000

Definition at line 159 of file ufs_fs.h.

#define UFS_DEFAULTOPT   UFS_OPTTIME

Definition at line 201 of file ufs_fs.h.

#define UFS_DIND_BLOCK   (UFS_NDADDR + 1)

Definition at line 130 of file ufs_fs.h.

#define UFS_DIND_FRAGMENT   (UFS_DIND_BLOCK << uspi->s_fpbshift)

Definition at line 135 of file ufs_fs.h.

#define UFS_DIR_PAD   4

Definition at line 281 of file ufs_fs.h.

#define UFS_DIR_REC_LEN (   name_len)    (((name_len) + 1 + 8 + UFS_DIR_ROUND) & ~UFS_DIR_ROUND)

Definition at line 283 of file ufs_fs.h.

#define UFS_DIR_ROUND   (UFS_DIR_PAD - 1)

Definition at line 282 of file ufs_fs.h.

#define UFS_DOSOFTDEP   0x02 /* file system using soft dependencies */

Definition at line 330 of file ufs_fs.h.

#define UFS_DYNAMICPOSTBLFMT   1 /* dynamic rotational table format */

Definition at line 507 of file ufs_fs.h.

#define UFS_FIRST_INO   (UFS_ROOTINO + 1)

Definition at line 139 of file ufs_fs.h.

#define UFS_FLAGS_UPDATED   0x80 /* flags have been moved to new location */

Definition at line 335 of file ufs_fs.h.

#define ufs_fragnum (   fsb)    ((fsb) & uspi->s_fpbmask)

Definition at line 263 of file ufs_fs.h.

#define ufs_fragoff (   loc)    ((loc) & uspi->s_qfmask)

Definition at line 255 of file ufs_fs.h.

#define ufs_fragroundup (   size)    (((size) + uspi->s_qfmask) & uspi->s_fmask)

Definition at line 260 of file ufs_fs.h.

#define ufs_fragstoblks (   frags)    ((frags) >> uspi->s_fpbshift)

Definition at line 261 of file ufs_fs.h.

#define UFS_FSACTIVE   ((__s8)0x00)

Definition at line 145 of file ufs_fs.h.

#define UFS_FSBAD   ((__s8)0xff)

Definition at line 149 of file ufs_fs.h.

#define ufs_fsbtodb (   uspi,
  b 
)    ((b) << (uspi)->s_fsbtodb)

Definition at line 207 of file ufs_fs.h.

#define UFS_FSCLEAN   ((__s8)0x01)

Definition at line 146 of file ufs_fs.h.

#define UFS_FSF_B1   0x00000002 /* B1 security */

Definition at line 114 of file ufs_fs.h.

#define UFS_FSF_LFN   0x00000001 /* long file names */

Definition at line 113 of file ufs_fs.h.

#define UFS_FSF_LFS   0x00000002 /* large files */

Definition at line 115 of file ufs_fs.h.

#define UFS_FSF_LUID   0x00000004 /* large UIDs */

Definition at line 116 of file ufs_fs.h.

#define UFS_FSFIX   ((__s8)0xfc) /* being repaired while mounted */

Definition at line 154 of file ufs_fs.h.

#define UFS_FSIZE   1024

Definition at line 123 of file ufs_fs.h.

#define UFS_FSLOG   ((__s8)0xfd) /* logging fs */

Definition at line 153 of file ufs_fs.h.

#define UFS_FSOK   0x7c269d38

Definition at line 144 of file ufs_fs.h.

#define UFS_FSOSF1   ((__s8)0x03) /* is this correct for DEC OSF/1? */

Definition at line 148 of file ufs_fs.h.

#define UFS_FSSTABLE   ((__s8)0x02)

Definition at line 147 of file ufs_fs.h.

#define UFS_FSSUSPEND   ((__s8)0xfe) /* temporarily suspended */

Definition at line 152 of file ufs_fs.h.

#define UFS_IND_BLOCK   (UFS_NDADDR + 0)

Definition at line 129 of file ufs_fs.h.

#define UFS_IND_FRAGMENT   (UFS_IND_BLOCK << uspi->s_fpbshift)

Definition at line 134 of file ufs_fs.h.

#define UFS_INDEXDIRS   0x08 /* kernel supports indexed directories */

Definition at line 332 of file ufs_fs.h.

#define ufs_inotocg (   x)    ((x) / uspi->s_ipg)

Definition at line 228 of file ufs_fs.h.

#define ufs_inotocgoff (   x)    ((x) % uspi->s_ipg)

Definition at line 229 of file ufs_fs.h.

#define ufs_inotofsba (   x)    (((u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf)

Definition at line 230 of file ufs_fs.h.

#define ufs_inotofsbo (   x)    ((x) % uspi->s_inopf)

Definition at line 231 of file ufs_fs.h.

#define ufs_lblkno (   loc)    ((loc) >> uspi->s_bshift)

Definition at line 257 of file ufs_fs.h.

#define ufs_lblktosize (   blk)    ((blk) << uspi->s_bshift)

Definition at line 256 of file ufs_fs.h.

#define UFS_LINK_MAX   32000

Definition at line 271 of file ufs_fs.h.

#define UFS_MAGIC   0x00011954

Definition at line 51 of file ufs_fs.h.

#define UFS_MAGIC_4GB   0x05231994 /* fs > 4 GB && fs_featurebits */

Definition at line 109 of file ufs_fs.h.

#define UFS_MAGIC_BW   0x0f242697

Definition at line 52 of file ufs_fs.h.

#define UFS_MAGIC_FEA   0x00195612 /* fs_featurebits supported */

Definition at line 106 of file ufs_fs.h.

#define UFS_MAGIC_LFN   0x00095014 /* fs supports filenames > 14 chars */

Definition at line 100 of file ufs_fs.h.

#define UFS_MAGIC_SEC   0x00612195 /* B1 security fs */

Definition at line 103 of file ufs_fs.h.

#define UFS_MAXCSBUFS   31

Definition at line 270 of file ufs_fs.h.

#define UFS_MAXFRAG   (UFS_BSIZE / UFS_FSIZE)

Definition at line 124 of file ufs_fs.h.

#define UFS_MAXMNTLEN   512

Definition at line 267 of file ufs_fs.h.

#define UFS_MAXNAMLEN   255

Definition at line 266 of file ufs_fs.h.

#define UFS_MINBSIZE   4096

Definition at line 122 of file ufs_fs.h.

#define UFS_MINFREE   5

Definition at line 200 of file ufs_fs.h.

#define UFS_MULTILABEL   0x20 /* file system is MAC multi-label */

Definition at line 334 of file ufs_fs.h.

#define UFS_NDADDR   12

Definition at line 126 of file ufs_fs.h.

#define UFS_NDIR_FRAGMENT   (UFS_NDADDR << uspi->s_fpbshift)

Definition at line 133 of file ufs_fs.h.

#define UFS_NEEDSFSCK   0x04 /* needs sync fsck (FreeBSD compat, unused) */

Definition at line 331 of file ufs_fs.h.

#define UFS_NINDIR   3

Definition at line 127 of file ufs_fs.h.

#define ufs_numfrags (   loc)    ((loc) >> uspi->s_fshift)

Definition at line 258 of file ufs_fs.h.

#define UFS_NXADDR   2 /* External addresses in inode. */

Definition at line 649 of file ufs_fs.h.

#define ufs_ocg_blks (   sb,
  ucg,
  cylno 
)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_b[cylno])

Definition at line 527 of file ufs_fs.h.

#define ufs_ocg_blksfree (   sb,
  ucg 
)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_free)

Definition at line 529 of file ufs_fs.h.

#define ufs_ocg_blktot (   sb,
  ucg 
)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_btot)

Definition at line 526 of file ufs_fs.h.

#define ufs_ocg_chkmagic (   sb,
  ucg 
)    (fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)

Definition at line 530 of file ufs_fs.h.

#define ufs_ocg_inosused (   sb,
  ucg 
)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_iused)

Definition at line 528 of file ufs_fs.h.

#define UFS_OPTSPACE   1 /* minimize disk fragmentation */

Definition at line 501 of file ufs_fs.h.

#define UFS_OPTTIME   0 /* minimize allocation time */

Definition at line 500 of file ufs_fs.h.

#define UFS_ROOTINO   2

Definition at line 138 of file ufs_fs.h.

#define UFS_SBLOCK   8192

Definition at line 46 of file ufs_fs.h.

#define UFS_SBSIZE   8192

Definition at line 47 of file ufs_fs.h.

#define UFS_SECTOR_BITS   9

Definition at line 50 of file ufs_fs.h.

#define UFS_SECTOR_SIZE   512

Definition at line 49 of file ufs_fs.h.

#define UFS_SF_APPEND   0x00040000 /* append-only */

Definition at line 694 of file ufs_fs.h.

#define UFS_SF_ARCHIVED   0x00010000 /* archived */

Definition at line 692 of file ufs_fs.h.

#define UFS_SF_IMMUTABLE   0x00020000 /* immutable (can't "change") */

Definition at line 693 of file ufs_fs.h.

#define UFS_SF_NOUNLINK   0x00100000 /* can't be removed or renamed */

Definition at line 695 of file ufs_fs.h.

#define UFS_SF_SETTABLE   0xffff0000

Definition at line 691 of file ufs_fs.h.

#define UFS_ST_44BSD   0x00000100

Definition at line 169 of file ufs_fs.h.

#define UFS_ST_MASK   0x00000700 /* mask for the following */

Definition at line 167 of file ufs_fs.h.

#define UFS_ST_OLD   0x00000000

Definition at line 168 of file ufs_fs.h.

#define UFS_ST_SUN   0x00000200 /* Solaris */

Definition at line 170 of file ufs_fs.h.

#define UFS_ST_SUNOS   0x00000300

Definition at line 171 of file ufs_fs.h.

#define UFS_ST_SUNx86   0x00000400 /* Solaris x86 */

Definition at line 172 of file ufs_fs.h.

#define UFS_TIND_BLOCK   (UFS_NDADDR + 2)

Definition at line 131 of file ufs_fs.h.

#define UFS_TIND_FRAGMENT   (UFS_TIND_BLOCK << uspi->s_fpbshift)

Definition at line 136 of file ufs_fs.h.

#define UFS_TYPE_MASK   0x00010000 /* mask for the following */

Definition at line 179 of file ufs_fs.h.

#define UFS_TYPE_UFS1   0x00000000

Definition at line 180 of file ufs_fs.h.

#define UFS_TYPE_UFS2   0x00010000

Definition at line 181 of file ufs_fs.h.

#define UFS_UF_APPEND   0x00000004 /* append-only */

Definition at line 687 of file ufs_fs.h.

#define UFS_UF_IMMUTABLE   0x00000002 /* immutable (can't "change") */

Definition at line 686 of file ufs_fs.h.

#define UFS_UF_NODUMP   0x00000001 /* do not dump */

Definition at line 685 of file ufs_fs.h.

#define UFS_UF_NOUNLINK   0x00000010 /* can't be removed or renamed */

Definition at line 689 of file ufs_fs.h.

#define UFS_UF_OPAQUE   0x00000008 /* directory is opaque (unionfs) */

Definition at line 688 of file ufs_fs.h.

#define UFS_UF_SETTABLE   0x0000ffff

Definition at line 684 of file ufs_fs.h.

#define UFS_UID_44BSD   0x00000020

Definition at line 164 of file ufs_fs.h.

#define UFS_UID_EFT   0x00000040

Definition at line 165 of file ufs_fs.h.

#define UFS_UID_MASK   0x00000060 /* mask for the following */

Definition at line 162 of file ufs_fs.h.

#define UFS_UID_OLD   0x00000000

Definition at line 163 of file ufs_fs.h.

#define UFS_UNCLEAN   0x01 /* file system not clean at mount (unused) */

Definition at line 329 of file ufs_fs.h.

#define UFS_USEEFT   ((__u16)65535)

Definition at line 141 of file ufs_fs.h.

Typedef Documentation

Definition at line 42 of file ufs_fs.h.

Definition at line 41 of file ufs_fs.h.

Definition at line 40 of file ufs_fs.h.

Variable Documentation

__fs64 cs_nffree

Definition at line 924 of file ufs_fs.h.

__fs64 cs_nifree

Definition at line 923 of file ufs_fs.h.

__fs64 cs_numclusters

Definition at line 925 of file ufs_fs.h.

__fs64 cs_spare[3]

Definition at line 926 of file ufs_fs.h.

__fs64 fs_csaddr

Definition at line 930 of file ufs_fs.h.

__fs64 fs_dsize

Definition at line 929 of file ufs_fs.h.

__fs64 fs_pendingblocks

Definition at line 931 of file ufs_fs.h.

__fs32 fs_pendinginodes

Definition at line 932 of file ufs_fs.h.

__fs64 fs_size

Definition at line 928 of file ufs_fs.h.

Definition at line 927 of file ufs_fs.h.