Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ocfs2_fs.h File Reference

Go to the source code of this file.

Data Structures

struct  ocfs2_system_inode_info
 
struct  ocfs2_block_check
 
struct  ocfs2_extent_rec
 
struct  ocfs2_chain_rec
 
struct  ocfs2_truncate_rec
 
struct  ocfs2_extent_list
 
struct  ocfs2_chain_list
 
struct  ocfs2_truncate_log
 
struct  ocfs2_extent_block
 
struct  ocfs2_slot_map
 
struct  ocfs2_extended_slot
 
struct  ocfs2_slot_map_extended
 
struct  ocfs2_cluster_info
 
struct  ocfs2_super_block
 
struct  ocfs2_local_alloc
 
struct  ocfs2_inline_data
 
struct  ocfs2_dinode
 
struct  ocfs2_dir_entry
 
struct  ocfs2_dir_block_trailer
 
struct  ocfs2_dx_entry
 
struct  ocfs2_dx_entry_list
 
struct  ocfs2_dx_root_block
 
struct  ocfs2_dx_leaf
 
struct  ocfs2_group_desc
 
struct  ocfs2_refcount_rec
 
struct  ocfs2_refcount_list
 
struct  ocfs2_refcount_block
 
struct  ocfs2_xattr_entry
 
struct  ocfs2_xattr_header
 
struct  ocfs2_xattr_value_root
 
struct  ocfs2_xattr_tree_root
 
struct  ocfs2_xattr_block
 
struct  ocfs2_disk_dqheader
 
struct  ocfs2_global_disk_dqinfo
 
struct  ocfs2_global_disk_dqblk
 
struct  ocfs2_local_disk_dqinfo
 
struct  ocfs2_local_disk_chunk
 
struct  ocfs2_local_disk_dqblk
 
struct  ocfs2_disk_dqtrailer
 

Macros

#define OCFS2_MAJOR_REV_LEVEL   0
 
#define OCFS2_MINOR_REV_LEVEL   90
 
#define OCFS2_SUPER_BLOCK_BLKNO   2
 
#define OCFS2_MIN_CLUSTERSIZE   4096
 
#define OCFS2_MAX_CLUSTERSIZE   1048576
 
#define OCFS2_MIN_BLOCKSIZE   512
 
#define OCFS2_MAX_BLOCKSIZE   OCFS2_MIN_CLUSTERSIZE
 
#define OCFS2_SUPER_MAGIC   0x7461636f
 
#define OCFS2_SUPER_BLOCK_SIGNATURE   "OCFSV2"
 
#define OCFS2_INODE_SIGNATURE   "INODE01"
 
#define OCFS2_EXTENT_BLOCK_SIGNATURE   "EXBLK01"
 
#define OCFS2_GROUP_DESC_SIGNATURE   "GROUP01"
 
#define OCFS2_XATTR_BLOCK_SIGNATURE   "XATTR01"
 
#define OCFS2_DIR_TRAILER_SIGNATURE   "DIRTRL1"
 
#define OCFS2_DX_ROOT_SIGNATURE   "DXDIR01"
 
#define OCFS2_DX_LEAF_SIGNATURE   "DXLEAF1"
 
#define OCFS2_REFCOUNT_BLOCK_SIGNATURE   "REFCNT1"
 
#define OCFS2_HAS_COMPAT_FEATURE(sb, mask)   ( OCFS2_SB(sb)->s_feature_compat & (mask) )
 
#define OCFS2_HAS_RO_COMPAT_FEATURE(sb, mask)   ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) )
 
#define OCFS2_HAS_INCOMPAT_FEATURE(sb, mask)   ( OCFS2_SB(sb)->s_feature_incompat & (mask) )
 
#define OCFS2_SET_COMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_compat |= (mask)
 
#define OCFS2_SET_RO_COMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_ro_compat |= (mask)
 
#define OCFS2_SET_INCOMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_incompat |= (mask)
 
#define OCFS2_CLEAR_COMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_compat &= ~(mask)
 
#define OCFS2_CLEAR_RO_COMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask)
 
#define OCFS2_CLEAR_INCOMPAT_FEATURE(sb, mask)   OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
 
#define OCFS2_FEATURE_COMPAT_SUPP
 
#define OCFS2_FEATURE_INCOMPAT_SUPP
 
#define OCFS2_FEATURE_RO_COMPAT_SUPP
 
#define OCFS2_FEATURE_INCOMPAT_HEARTBEAT_DEV   0x0002
 
#define OCFS2_FEATURE_INCOMPAT_RESIZE_INPROG   0x0004
 
#define OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT   0x0008
 
#define OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC   0x0010
 
#define OCFS2_FEATURE_INCOMPAT_TUNEFS_INPROG   0x0020
 
#define OCFS2_FEATURE_INCOMPAT_INLINE_DATA   0x0040
 
#define OCFS2_FEATURE_INCOMPAT_USERSPACE_STACK   0x0080
 
#define OCFS2_FEATURE_INCOMPAT_EXTENDED_SLOT_MAP   0x100
 
#define OCFS2_FEATURE_INCOMPAT_XATTR   0x0200
 
#define OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS   0x0400
 
#define OCFS2_FEATURE_INCOMPAT_META_ECC   0x0800
 
#define OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE   0x1000
 
#define OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG   0x2000
 
#define OCFS2_FEATURE_INCOMPAT_CLUSTERINFO   0x4000
 
#define OCFS2_FEATURE_COMPAT_BACKUP_SB   0x0001
 
#define OCFS2_FEATURE_COMPAT_JBD2_SB   0x0002
 
#define OCFS2_FEATURE_RO_COMPAT_UNWRITTEN   0x0001
 
#define OCFS2_FEATURE_RO_COMPAT_USRQUOTA   0x0002
 
#define OCFS2_FEATURE_RO_COMPAT_GRPQUOTA   0x0004
 
#define OCFS2_BACKUP_SB_START   1 << 30
 
#define OCFS2_MAX_BACKUP_SUPERBLOCKS   6
 
#define OCFS2_TUNEFS_INPROG_REMOVE_SLOT   0x0001 /* Removing slots */
 
#define OCFS2_VALID_FL   (0x00000001) /* Inode is valid */
 
#define OCFS2_UNUSED2_FL   (0x00000002)
 
#define OCFS2_ORPHANED_FL   (0x00000004) /* On the orphan list */
 
#define OCFS2_UNUSED3_FL   (0x00000008)
 
#define OCFS2_SYSTEM_FL   (0x00000010) /* System inode */
 
#define OCFS2_SUPER_BLOCK_FL   (0x00000020) /* Super block */
 
#define OCFS2_LOCAL_ALLOC_FL   (0x00000040) /* Slot local alloc bitmap */
 
#define OCFS2_BITMAP_FL   (0x00000080) /* Allocation bitmap */
 
#define OCFS2_JOURNAL_FL   (0x00000100) /* Slot local journal */
 
#define OCFS2_HEARTBEAT_FL   (0x00000200) /* Heartbeat area */
 
#define OCFS2_CHAIN_FL   (0x00000400) /* Chain allocator */
 
#define OCFS2_DEALLOC_FL   (0x00000800) /* Truncate log */
 
#define OCFS2_QUOTA_FL   (0x00001000) /* Quota file */
 
#define OCFS2_INLINE_DATA_FL   (0x0001) /* Data stored in inode block */
 
#define OCFS2_HAS_XATTR_FL   (0x0002)
 
#define OCFS2_INLINE_XATTR_FL   (0x0004)
 
#define OCFS2_INDEXED_DIR_FL   (0x0008)
 
#define OCFS2_HAS_REFCOUNT_FL   (0x0010)
 
#define OCFS2_SECRM_FL   FS_SECRM_FL /* Secure deletion */
 
#define OCFS2_UNRM_FL   FS_UNRM_FL /* Undelete */
 
#define OCFS2_COMPR_FL   FS_COMPR_FL /* Compress file */
 
#define OCFS2_SYNC_FL   FS_SYNC_FL /* Synchronous updates */
 
#define OCFS2_IMMUTABLE_FL   FS_IMMUTABLE_FL /* Immutable file */
 
#define OCFS2_APPEND_FL   FS_APPEND_FL /* writes to file may only append */
 
#define OCFS2_NODUMP_FL   FS_NODUMP_FL /* do not dump file */
 
#define OCFS2_NOATIME_FL   FS_NOATIME_FL /* do not update atime */
 
#define OCFS2_DIRTY_FL   FS_DIRTY_FL
 
#define OCFS2_COMPRBLK_FL   FS_COMPRBLK_FL /* One or more compressed clusters */
 
#define OCFS2_NOCOMP_FL   FS_NOCOMP_FL /* Don't compress */
 
#define OCFS2_ECOMPR_FL   FS_ECOMPR_FL /* Compression error */
 
#define OCFS2_BTREE_FL   FS_BTREE_FL /* btree format dir */
 
#define OCFS2_INDEX_FL   FS_INDEX_FL /* hash-indexed directory */
 
#define OCFS2_IMAGIC_FL   FS_IMAGIC_FL /* AFS directory */
 
#define OCFS2_JOURNAL_DATA_FL   FS_JOURNAL_DATA_FL /* Reserved for ext3 */
 
#define OCFS2_NOTAIL_FL   FS_NOTAIL_FL /* file tail should not be merged */
 
#define OCFS2_DIRSYNC_FL   FS_DIRSYNC_FL /* dirsync behaviour (directories only) */
 
#define OCFS2_TOPDIR_FL   FS_TOPDIR_FL /* Top of directory hierarchies*/
 
#define OCFS2_RESERVED_FL   FS_RESERVED_FL /* reserved for ext2 lib */
 
#define OCFS2_FL_VISIBLE   FS_FL_USER_VISIBLE /* User visible flags */
 
#define OCFS2_FL_MODIFIABLE   FS_FL_USER_MODIFIABLE /* User modifiable flags */
 
#define OCFS2_EXT_UNWRITTEN
 
#define OCFS2_EXT_REFCOUNTED
 
#define OCFS2_JOURNAL_DIRTY_FL   (0x00000001) /* Journal needs recovery */
 
#define OCFS2_ERROR_FS   (0x00000001) /* FS saw errors */
 
#define OCFS2_MAX_FILENAME_LEN   255
 
#define OCFS2_MAX_SLOTS   255
 
#define OCFS2_INVALID_SLOT   -1
 
#define OCFS2_VOL_UUID_LEN   16
 
#define OCFS2_MAX_VOL_LABEL_LEN   64
 
#define OCFS2_STACK_LABEL_LEN   4
 
#define OCFS2_CLUSTER_NAME_LEN   16
 
#define OCFS2_CLASSIC_CLUSTER_STACK   "o2cb"
 
#define OCFS2_MIN_JOURNAL_SIZE   (4 * 1024 * 1024)
 
#define OCFS2_MIN_XATTR_INLINE_SIZE   256
 
#define OCFS2_CLUSTER_O2CB_GLOBAL_HEARTBEAT   (0x01)
 
#define OCFS2_FIRST_ONLINE_SYSTEM_INODE   SLOT_MAP_SYSTEM_INODE
 
#define OCFS2_LAST_GLOBAL_SYSTEM_INODE   GROUP_QUOTA_SYSTEM_INODE
 
#define OCFS2_FIRST_LOCAL_SYSTEM_INODE   ORPHAN_DIR_SYSTEM_INODE
 
#define OCFS2_LAST_LOCAL_SYSTEM_INODE   LOCAL_GROUP_QUOTA_SYSTEM_INODE
 
#define NUM_GLOBAL_SYSTEM_INODES   OCFS2_FIRST_LOCAL_SYSTEM_INODE
 
#define NUM_LOCAL_SYSTEM_INODES   (NUM_SYSTEM_INODES - OCFS2_FIRST_LOCAL_SYSTEM_INODE)
 
#define OCFS2_HB_NONE   "heartbeat=none"
 
#define OCFS2_HB_LOCAL   "heartbeat=local"
 
#define OCFS2_HB_GLOBAL   "heartbeat=global"
 
#define OCFS2_FT_UNKNOWN   0
 
#define OCFS2_FT_REG_FILE   1
 
#define OCFS2_FT_DIR   2
 
#define OCFS2_FT_CHRDEV   3
 
#define OCFS2_FT_BLKDEV   4
 
#define OCFS2_FT_FIFO   5
 
#define OCFS2_FT_SOCK   6
 
#define OCFS2_FT_SYMLINK   7
 
#define OCFS2_FT_MAX   8
 
#define OCFS2_DIR_PAD   4
 
#define OCFS2_DIR_ROUND   (OCFS2_DIR_PAD - 1)
 
#define OCFS2_DIR_MEMBER_LEN   offsetof(struct ocfs2_dir_entry, name)
 
#define OCFS2_DIR_REC_LEN(name_len)
 
#define OCFS2_DIR_MIN_REC_LEN   OCFS2_DIR_REC_LEN(1)
 
#define OCFS2_LINK_MAX   32000
 
#define OCFS2_DX_LINK_MAX   ((1U << 31) - 1U)
 
#define OCFS2_LINKS_HI_SHIFT   16
 
#define OCFS2_DX_ENTRIES_MAX   (0xffffffffU)
 
#define S_SHIFT   12
 
#define OCFS2_RAW_SB(dinode)   (&((dinode)->id2.i_super))
 
#define OCFS2_DX_FLAG_INLINE   0x01
 
#define OCFS2_MAX_BG_BITMAP_SIZE   256
 
#define OCFS2_32BIT_POS_MASK   (0xffffffffULL)
 
#define OCFS2_REFCOUNT_LEAF_FL   (0x00000001)
 
#define OCFS2_REFCOUNT_TREE_FL   (0x00000002)
 
#define OCFS2_XATTR_INDEXED   0x1
 
#define OCFS2_HASH_SHIFT   5
 
#define OCFS2_XATTR_ROUND   3
 
#define OCFS2_XATTR_SIZE(size)
 
#define OCFS2_XATTR_BUCKET_SIZE   4096
 
#define OCFS2_XATTR_MAX_BLOCKS_PER_BUCKET
 
#define OCFS2_XATTR_ENTRY_LOCAL   0x80
 
#define OCFS2_XATTR_TYPE_MASK   0x7F
 
#define OCFS2_GLOBAL_QMAGICS
 
#define OCFS2_GLOBAL_QVERSIONS
 
#define OCFS2_QBLK_RESERVED_SPACE   8
 
#define OCFS2_GLOBAL_INFO_OFF   (sizeof(struct ocfs2_disk_dqheader))
 
#define OCFS2_LOCAL_QMAGICS
 
#define OCFS2_LOCAL_QVERSIONS
 
#define OLQF_CLEAN
 
#define OCFS2_LOCAL_INFO_OFF   (sizeof(struct ocfs2_disk_dqheader))
 

Enumerations

enum  {
  BAD_BLOCK_SYSTEM_INODE = 0, GLOBAL_INODE_ALLOC_SYSTEM_INODE, SLOT_MAP_SYSTEM_INODE, HEARTBEAT_SYSTEM_INODE,
  GLOBAL_BITMAP_SYSTEM_INODE, USER_QUOTA_SYSTEM_INODE, GROUP_QUOTA_SYSTEM_INODE, ORPHAN_DIR_SYSTEM_INODE,
  EXTENT_ALLOC_SYSTEM_INODE, INODE_ALLOC_SYSTEM_INODE, JOURNAL_SYSTEM_INODE, LOCAL_ALLOC_SYSTEM_INODE,
  TRUNCATE_LOG_SYSTEM_INODE, LOCAL_USER_QUOTA_SYSTEM_INODE, LOCAL_GROUP_QUOTA_SYSTEM_INODE, NUM_SYSTEM_INODES
}
 

Functions

struct ocfs2_dir_entry __attribute__ ((packed))
 

Variables

__le64 inode
 
__le16 rec_len
 
__u8 name_len
 
__u8 file_type
 
char name [OCFS2_MAX_FILENAME_LEN]
 
struct ocfs2_dir_block_trailer __attribute__
 

Macro Definition Documentation

#define NUM_GLOBAL_SYSTEM_INODES   OCFS2_FIRST_LOCAL_SYSTEM_INODE

Definition at line 350 of file ocfs2_fs.h.

#define NUM_LOCAL_SYSTEM_INODES   (NUM_SYSTEM_INODES - OCFS2_FIRST_LOCAL_SYSTEM_INODE)

Definition at line 351 of file ocfs2_fs.h.

#define OCFS2_32BIT_POS_MASK   (0xffffffffULL)

Definition at line 953 of file ocfs2_fs.h.

#define OCFS2_APPEND_FL   FS_APPEND_FL /* writes to file may only append */

Definition at line 251 of file ocfs2_fs.h.

#define OCFS2_BACKUP_SB_START   1 << 30

Definition at line 205 of file ocfs2_fs.h.

#define OCFS2_BITMAP_FL   (0x00000080) /* Allocation bitmap */

Definition at line 226 of file ocfs2_fs.h.

#define OCFS2_BTREE_FL   FS_BTREE_FL /* btree format dir */

Definition at line 260 of file ocfs2_fs.h.

#define OCFS2_CHAIN_FL   (0x00000400) /* Chain allocator */

Definition at line 229 of file ocfs2_fs.h.

#define OCFS2_CLASSIC_CLUSTER_STACK   "o2cb"

Definition at line 305 of file ocfs2_fs.h.

#define OCFS2_CLEAR_COMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_compat &= ~(mask)

Definition at line 86 of file ocfs2_fs.h.

#define OCFS2_CLEAR_INCOMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_incompat &= ~(mask)

Definition at line 90 of file ocfs2_fs.h.

#define OCFS2_CLEAR_RO_COMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask)

Definition at line 88 of file ocfs2_fs.h.

#define OCFS2_CLUSTER_NAME_LEN   16

Definition at line 302 of file ocfs2_fs.h.

#define OCFS2_CLUSTER_O2CB_GLOBAL_HEARTBEAT   (0x01)

Definition at line 319 of file ocfs2_fs.h.

#define OCFS2_COMPR_FL   FS_COMPR_FL /* Compress file */

Definition at line 248 of file ocfs2_fs.h.

#define OCFS2_COMPRBLK_FL   FS_COMPRBLK_FL /* One or more compressed clusters */

Definition at line 256 of file ocfs2_fs.h.

#define OCFS2_DEALLOC_FL   (0x00000800) /* Truncate log */

Definition at line 230 of file ocfs2_fs.h.

#define OCFS2_DIR_MEMBER_LEN   offsetof(struct ocfs2_dir_entry, name)

Definition at line 405 of file ocfs2_fs.h.

#define OCFS2_DIR_MIN_REC_LEN   OCFS2_DIR_REC_LEN(1)

Definition at line 409 of file ocfs2_fs.h.

#define OCFS2_DIR_PAD   4

Definition at line 403 of file ocfs2_fs.h.

#define OCFS2_DIR_REC_LEN (   name_len)
Value:
~OCFS2_DIR_ROUND)

Definition at line 406 of file ocfs2_fs.h.

#define OCFS2_DIR_ROUND   (OCFS2_DIR_PAD - 1)

Definition at line 404 of file ocfs2_fs.h.

#define OCFS2_DIR_TRAILER_SIGNATURE   "DIRTRL1"

Definition at line 68 of file ocfs2_fs.h.

#define OCFS2_DIRSYNC_FL   FS_DIRSYNC_FL /* dirsync behaviour (directories only) */

Definition at line 265 of file ocfs2_fs.h.

#define OCFS2_DIRTY_FL   FS_DIRTY_FL

Definition at line 255 of file ocfs2_fs.h.

#define OCFS2_DX_ENTRIES_MAX   (0xffffffffU)

Definition at line 414 of file ocfs2_fs.h.

#define OCFS2_DX_FLAG_INLINE   0x01

Definition at line 832 of file ocfs2_fs.h.

#define OCFS2_DX_LEAF_SIGNATURE   "DXLEAF1"

Definition at line 70 of file ocfs2_fs.h.

#define OCFS2_DX_LINK_MAX   ((1U << 31) - 1U)

Definition at line 412 of file ocfs2_fs.h.

#define OCFS2_DX_ROOT_SIGNATURE   "DXDIR01"

Definition at line 69 of file ocfs2_fs.h.

#define OCFS2_ECOMPR_FL   FS_ECOMPR_FL /* Compression error */

Definition at line 258 of file ocfs2_fs.h.

#define OCFS2_ERROR_FS   (0x00000001) /* FS saw errors */

Definition at line 286 of file ocfs2_fs.h.

#define OCFS2_EXT_REFCOUNTED
Value:
(0x02) /* Extent is reference
* counted in an associated
* refcount tree */

Definition at line 276 of file ocfs2_fs.h.

#define OCFS2_EXT_UNWRITTEN
Value:
(0x01) /* Extent is allocated but
* unwritten */

Definition at line 275 of file ocfs2_fs.h.

#define OCFS2_EXTENT_BLOCK_SIGNATURE   "EXBLK01"

Definition at line 65 of file ocfs2_fs.h.

#define OCFS2_FEATURE_COMPAT_BACKUP_SB   0x0001

Definition at line 184 of file ocfs2_fs.h.

#define OCFS2_FEATURE_COMPAT_JBD2_SB   0x0002

Definition at line 189 of file ocfs2_fs.h.

#define OCFS2_FEATURE_COMPAT_SUPP
#define OCFS2_FEATURE_INCOMPAT_CLUSTERINFO   0x4000

Definition at line 178 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG   0x2000

Definition at line 171 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_EXTENDED_SLOT_MAP   0x100

Definition at line 156 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_HEARTBEAT_DEV   0x0002

Definition at line 115 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS   0x0400

Definition at line 162 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_INLINE_DATA   0x0040

Definition at line 142 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT   0x0008

Definition at line 125 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_META_ECC   0x0800

Definition at line 165 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE   0x1000

Definition at line 168 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_RESIZE_INPROG   0x0004

Definition at line 122 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC   0x0010

Definition at line 128 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_SUPP
#define OCFS2_FEATURE_INCOMPAT_TUNEFS_INPROG   0x0020

Definition at line 139 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_USERSPACE_STACK   0x0080

Definition at line 153 of file ocfs2_fs.h.

#define OCFS2_FEATURE_INCOMPAT_XATTR   0x0200

Definition at line 159 of file ocfs2_fs.h.

#define OCFS2_FEATURE_RO_COMPAT_GRPQUOTA   0x0004

Definition at line 200 of file ocfs2_fs.h.

#define OCFS2_FEATURE_RO_COMPAT_SUPP
#define OCFS2_FEATURE_RO_COMPAT_UNWRITTEN   0x0001

Definition at line 194 of file ocfs2_fs.h.

#define OCFS2_FEATURE_RO_COMPAT_USRQUOTA   0x0002

Definition at line 199 of file ocfs2_fs.h.

#define OCFS2_FIRST_LOCAL_SYSTEM_INODE   ORPHAN_DIR_SYSTEM_INODE

Definition at line 338 of file ocfs2_fs.h.

#define OCFS2_FIRST_ONLINE_SYSTEM_INODE   SLOT_MAP_SYSTEM_INODE

Definition at line 332 of file ocfs2_fs.h.

#define OCFS2_FL_MODIFIABLE   FS_FL_USER_MODIFIABLE /* User modifiable flags */

Definition at line 270 of file ocfs2_fs.h.

#define OCFS2_FL_VISIBLE   FS_FL_USER_VISIBLE /* User visible flags */

Definition at line 269 of file ocfs2_fs.h.

#define OCFS2_FT_BLKDEV   4

Definition at line 391 of file ocfs2_fs.h.

#define OCFS2_FT_CHRDEV   3

Definition at line 390 of file ocfs2_fs.h.

#define OCFS2_FT_DIR   2

Definition at line 389 of file ocfs2_fs.h.

#define OCFS2_FT_FIFO   5

Definition at line 392 of file ocfs2_fs.h.

#define OCFS2_FT_MAX   8

Definition at line 396 of file ocfs2_fs.h.

#define OCFS2_FT_REG_FILE   1

Definition at line 388 of file ocfs2_fs.h.

#define OCFS2_FT_SOCK   6

Definition at line 393 of file ocfs2_fs.h.

#define OCFS2_FT_SYMLINK   7

Definition at line 394 of file ocfs2_fs.h.

#define OCFS2_FT_UNKNOWN   0

Definition at line 387 of file ocfs2_fs.h.

#define OCFS2_GLOBAL_INFO_OFF   (sizeof(struct ocfs2_disk_dqheader))

Definition at line 1171 of file ocfs2_fs.h.

#define OCFS2_GLOBAL_QMAGICS
Value:
{\
0x0cf52470, /* USRQUOTA */ \
0x0cf52471 /* GRPQUOTA */ \
}

Definition at line 1149 of file ocfs2_fs.h.

#define OCFS2_GLOBAL_QVERSIONS
Value:
{\
0, \
0, \
}

Definition at line 1154 of file ocfs2_fs.h.

#define OCFS2_GROUP_DESC_SIGNATURE   "GROUP01"

Definition at line 66 of file ocfs2_fs.h.

#define OCFS2_HAS_COMPAT_FEATURE (   sb,
  mask 
)    ( OCFS2_SB(sb)->s_feature_compat & (mask) )

Definition at line 74 of file ocfs2_fs.h.

#define OCFS2_HAS_INCOMPAT_FEATURE (   sb,
  mask 
)    ( OCFS2_SB(sb)->s_feature_incompat & (mask) )

Definition at line 78 of file ocfs2_fs.h.

#define OCFS2_HAS_REFCOUNT_FL   (0x0010)

Definition at line 243 of file ocfs2_fs.h.

#define OCFS2_HAS_RO_COMPAT_FEATURE (   sb,
  mask 
)    ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) )

Definition at line 76 of file ocfs2_fs.h.

#define OCFS2_HAS_XATTR_FL   (0x0002)

Definition at line 240 of file ocfs2_fs.h.

#define OCFS2_HASH_SHIFT   5

Definition at line 1080 of file ocfs2_fs.h.

#define OCFS2_HB_GLOBAL   "heartbeat=global"

Definition at line 381 of file ocfs2_fs.h.

#define OCFS2_HB_LOCAL   "heartbeat=local"

Definition at line 380 of file ocfs2_fs.h.

#define OCFS2_HB_NONE   "heartbeat=none"

Definition at line 379 of file ocfs2_fs.h.

#define OCFS2_HEARTBEAT_FL   (0x00000200) /* Heartbeat area */

Definition at line 228 of file ocfs2_fs.h.

#define OCFS2_IMAGIC_FL   FS_IMAGIC_FL /* AFS directory */

Definition at line 262 of file ocfs2_fs.h.

#define OCFS2_IMMUTABLE_FL   FS_IMMUTABLE_FL /* Immutable file */

Definition at line 250 of file ocfs2_fs.h.

#define OCFS2_INDEX_FL   FS_INDEX_FL /* hash-indexed directory */

Definition at line 261 of file ocfs2_fs.h.

#define OCFS2_INDEXED_DIR_FL   (0x0008)

Definition at line 242 of file ocfs2_fs.h.

#define OCFS2_INLINE_DATA_FL   (0x0001) /* Data stored in inode block */

Definition at line 239 of file ocfs2_fs.h.

#define OCFS2_INLINE_XATTR_FL   (0x0004)

Definition at line 241 of file ocfs2_fs.h.

#define OCFS2_INODE_SIGNATURE   "INODE01"

Definition at line 64 of file ocfs2_fs.h.

#define OCFS2_INVALID_SLOT   -1

Definition at line 295 of file ocfs2_fs.h.

#define OCFS2_JOURNAL_DATA_FL   FS_JOURNAL_DATA_FL /* Reserved for ext3 */

Definition at line 263 of file ocfs2_fs.h.

#define OCFS2_JOURNAL_DIRTY_FL   (0x00000001) /* Journal needs recovery */

Definition at line 281 of file ocfs2_fs.h.

#define OCFS2_JOURNAL_FL   (0x00000100) /* Slot local journal */

Definition at line 227 of file ocfs2_fs.h.

#define OCFS2_LAST_GLOBAL_SYSTEM_INODE   GROUP_QUOTA_SYSTEM_INODE

Definition at line 337 of file ocfs2_fs.h.

#define OCFS2_LAST_LOCAL_SYSTEM_INODE   LOCAL_GROUP_QUOTA_SYSTEM_INODE

Definition at line 347 of file ocfs2_fs.h.

#define OCFS2_LINK_MAX   32000

Definition at line 411 of file ocfs2_fs.h.

#define OCFS2_LINKS_HI_SHIFT   16

Definition at line 413 of file ocfs2_fs.h.

#define OCFS2_LOCAL_ALLOC_FL   (0x00000040) /* Slot local alloc bitmap */

Definition at line 225 of file ocfs2_fs.h.

#define OCFS2_LOCAL_INFO_OFF   (sizeof(struct ocfs2_disk_dqheader))

Definition at line 1221 of file ocfs2_fs.h.

#define OCFS2_LOCAL_QMAGICS
Value:
{\
0x0cf524c0, /* USRQUOTA */ \
0x0cf524c1 /* GRPQUOTA */ \
}

Definition at line 1208 of file ocfs2_fs.h.

#define OCFS2_LOCAL_QVERSIONS
Value:
{\
0, \
0, \
}

Definition at line 1213 of file ocfs2_fs.h.

#define OCFS2_MAJOR_REV_LEVEL   0

Definition at line 29 of file ocfs2_fs.h.

#define OCFS2_MAX_BACKUP_SUPERBLOCKS   6

Definition at line 208 of file ocfs2_fs.h.

#define OCFS2_MAX_BG_BITMAP_SIZE   256

Definition at line 899 of file ocfs2_fs.h.

#define OCFS2_MAX_BLOCKSIZE   OCFS2_MIN_CLUSTERSIZE

Definition at line 57 of file ocfs2_fs.h.

#define OCFS2_MAX_CLUSTERSIZE   1048576

Definition at line 50 of file ocfs2_fs.h.

#define OCFS2_MAX_FILENAME_LEN   255

Definition at line 289 of file ocfs2_fs.h.

#define OCFS2_MAX_SLOTS   255

Definition at line 292 of file ocfs2_fs.h.

#define OCFS2_MAX_VOL_LABEL_LEN   64

Definition at line 298 of file ocfs2_fs.h.

#define OCFS2_MIN_BLOCKSIZE   512

Definition at line 56 of file ocfs2_fs.h.

#define OCFS2_MIN_CLUSTERSIZE   4096

Definition at line 49 of file ocfs2_fs.h.

#define OCFS2_MIN_JOURNAL_SIZE   (4 * 1024 * 1024)

Definition at line 308 of file ocfs2_fs.h.

#define OCFS2_MIN_XATTR_INLINE_SIZE   256

Definition at line 314 of file ocfs2_fs.h.

#define OCFS2_MINOR_REV_LEVEL   90

Definition at line 30 of file ocfs2_fs.h.

#define OCFS2_NOATIME_FL   FS_NOATIME_FL /* do not update atime */

Definition at line 253 of file ocfs2_fs.h.

#define OCFS2_NOCOMP_FL   FS_NOCOMP_FL /* Don't compress */

Definition at line 257 of file ocfs2_fs.h.

#define OCFS2_NODUMP_FL   FS_NODUMP_FL /* do not dump file */

Definition at line 252 of file ocfs2_fs.h.

#define OCFS2_NOTAIL_FL   FS_NOTAIL_FL /* file tail should not be merged */

Definition at line 264 of file ocfs2_fs.h.

#define OCFS2_ORPHANED_FL   (0x00000004) /* On the orphan list */

Definition at line 220 of file ocfs2_fs.h.

#define OCFS2_QBLK_RESERVED_SPACE   8

Definition at line 1163 of file ocfs2_fs.h.

#define OCFS2_QUOTA_FL   (0x00001000) /* Quota file */

Definition at line 231 of file ocfs2_fs.h.

#define OCFS2_RAW_SB (   dinode)    (&((dinode)->id2.i_super))

Definition at line 431 of file ocfs2_fs.h.

#define OCFS2_REFCOUNT_BLOCK_SIGNATURE   "REFCNT1"

Definition at line 71 of file ocfs2_fs.h.

#define OCFS2_REFCOUNT_LEAF_FL   (0x00000001)

Definition at line 955 of file ocfs2_fs.h.

#define OCFS2_REFCOUNT_TREE_FL   (0x00000002)

Definition at line 956 of file ocfs2_fs.h.

#define OCFS2_RESERVED_FL   FS_RESERVED_FL /* reserved for ext2 lib */

Definition at line 267 of file ocfs2_fs.h.

#define OCFS2_SECRM_FL   FS_SECRM_FL /* Secure deletion */

Definition at line 246 of file ocfs2_fs.h.

#define OCFS2_SET_COMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_compat |= (mask)

Definition at line 80 of file ocfs2_fs.h.

#define OCFS2_SET_INCOMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_incompat |= (mask)

Definition at line 84 of file ocfs2_fs.h.

#define OCFS2_SET_RO_COMPAT_FEATURE (   sb,
  mask 
)    OCFS2_SB(sb)->s_feature_ro_compat |= (mask)

Definition at line 82 of file ocfs2_fs.h.

#define OCFS2_STACK_LABEL_LEN   4

Definition at line 301 of file ocfs2_fs.h.

#define OCFS2_SUPER_BLOCK_BLKNO   2

Definition at line 43 of file ocfs2_fs.h.

#define OCFS2_SUPER_BLOCK_FL   (0x00000020) /* Super block */

Definition at line 224 of file ocfs2_fs.h.

#define OCFS2_SUPER_BLOCK_SIGNATURE   "OCFSV2"

Definition at line 63 of file ocfs2_fs.h.

#define OCFS2_SUPER_MAGIC   0x7461636f

Definition at line 60 of file ocfs2_fs.h.

#define OCFS2_SYNC_FL   FS_SYNC_FL /* Synchronous updates */

Definition at line 249 of file ocfs2_fs.h.

#define OCFS2_SYSTEM_FL   (0x00000010) /* System inode */

Definition at line 223 of file ocfs2_fs.h.

#define OCFS2_TOPDIR_FL   FS_TOPDIR_FL /* Top of directory hierarchies*/

Definition at line 266 of file ocfs2_fs.h.

#define OCFS2_TUNEFS_INPROG_REMOVE_SLOT   0x0001 /* Removing slots */

Definition at line 213 of file ocfs2_fs.h.

#define OCFS2_UNRM_FL   FS_UNRM_FL /* Undelete */

Definition at line 247 of file ocfs2_fs.h.

#define OCFS2_UNUSED2_FL   (0x00000002)

Definition at line 219 of file ocfs2_fs.h.

#define OCFS2_UNUSED3_FL   (0x00000008)

Definition at line 221 of file ocfs2_fs.h.

#define OCFS2_VALID_FL   (0x00000001) /* Inode is valid */

Definition at line 218 of file ocfs2_fs.h.

#define OCFS2_VOL_UUID_LEN   16

Definition at line 297 of file ocfs2_fs.h.

#define OCFS2_XATTR_BLOCK_SIGNATURE   "XATTR01"

Definition at line 67 of file ocfs2_fs.h.

#define OCFS2_XATTR_BUCKET_SIZE   4096

Definition at line 1085 of file ocfs2_fs.h.

#define OCFS2_XATTR_ENTRY_LOCAL   0x80

Definition at line 1118 of file ocfs2_fs.h.

#define OCFS2_XATTR_INDEXED   0x1

Definition at line 1079 of file ocfs2_fs.h.

#define OCFS2_XATTR_MAX_BLOCKS_PER_BUCKET
Value:

Definition at line 1086 of file ocfs2_fs.h.

#define OCFS2_XATTR_ROUND   3

Definition at line 1081 of file ocfs2_fs.h.

#define OCFS2_XATTR_SIZE (   size)
Value:

Definition at line 1082 of file ocfs2_fs.h.

#define OCFS2_XATTR_TYPE_MASK   0x7F

Definition at line 1119 of file ocfs2_fs.h.

#define OLQF_CLEAN
Value:
0x0001 /* Quota file is empty (this should be after\
* quota has been cleanly turned off) */

Definition at line 1219 of file ocfs2_fs.h.

#define S_SHIFT   12

Definition at line 416 of file ocfs2_fs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BAD_BLOCK_SYSTEM_INODE 
GLOBAL_INODE_ALLOC_SYSTEM_INODE 
SLOT_MAP_SYSTEM_INODE 
HEARTBEAT_SYSTEM_INODE 
GLOBAL_BITMAP_SYSTEM_INODE 
USER_QUOTA_SYSTEM_INODE 
GROUP_QUOTA_SYSTEM_INODE 
ORPHAN_DIR_SYSTEM_INODE 
EXTENT_ALLOC_SYSTEM_INODE 
INODE_ALLOC_SYSTEM_INODE 
JOURNAL_SYSTEM_INODE 
LOCAL_ALLOC_SYSTEM_INODE 
TRUNCATE_LOG_SYSTEM_INODE 
LOCAL_USER_QUOTA_SYSTEM_INODE 
LOCAL_GROUP_QUOTA_SYSTEM_INODE 
NUM_SYSTEM_INODES 

Definition at line 328 of file ocfs2_fs.h.

Function Documentation

struct ocfs2_dir_entry __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__u8 file_type

Definition at line 779 of file ocfs2_fs.h.

Definition at line 776 of file ocfs2_fs.h.

Definition at line 780 of file ocfs2_fs.h.

__u8 name_len

Definition at line 778 of file ocfs2_fs.h.

__le16 rec_len

Definition at line 777 of file ocfs2_fs.h.