Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
gfs2_ondisk.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  gfs2_inum
 
struct  gfs2_meta_header
 
struct  gfs2_sb
 
struct  gfs2_rindex
 
struct  gfs2_rgrp_lvb
 
struct  gfs2_rgrp
 
struct  gfs2_quota
 
struct  gfs2_dinode
 
struct  gfs2_dirent
 
struct  gfs2_leaf
 
struct  gfs2_ea_header
 
struct  gfs2_log_header
 
struct  gfs2_log_descriptor
 
struct  gfs2_inum_range
 
struct  gfs2_statfs_change
 
struct  gfs2_quota_change
 
struct  gfs2_quota_lvb
 

Macros

#define GFS2_MAGIC   0x01161970
 
#define GFS2_BASIC_BLOCK   512
 
#define GFS2_BASIC_BLOCK_SHIFT   9
 
#define GFS2_MOUNT_LOCK   0
 
#define GFS2_LIVE_LOCK   1
 
#define GFS2_TRANS_LOCK   2
 
#define GFS2_RENAME_LOCK   3
 
#define GFS2_CONTROL_LOCK   4
 
#define GFS2_MOUNTED_LOCK   5
 
#define GFS2_FORMAT_NONE   0
 
#define GFS2_FORMAT_SB   100
 
#define GFS2_FORMAT_RG   200
 
#define GFS2_FORMAT_RB   300
 
#define GFS2_FORMAT_DI   400
 
#define GFS2_FORMAT_IN   500
 
#define GFS2_FORMAT_LF   600
 
#define GFS2_FORMAT_JD   700
 
#define GFS2_FORMAT_LH   800
 
#define GFS2_FORMAT_LD   900
 
#define GFS2_FORMAT_LB   1000
 
#define GFS2_FORMAT_EA   1600
 
#define GFS2_FORMAT_ED   1700
 
#define GFS2_FORMAT_QC   1400
 
#define GFS2_FORMAT_RI   1100
 
#define GFS2_FORMAT_DE   1200
 
#define GFS2_FORMAT_QU   1500
 
#define GFS2_FORMAT_FS   1801
 
#define GFS2_FORMAT_MULTI   1900
 
#define GFS2_METATYPE_NONE   0
 
#define GFS2_METATYPE_SB   1
 
#define GFS2_METATYPE_RG   2
 
#define GFS2_METATYPE_RB   3
 
#define GFS2_METATYPE_DI   4
 
#define GFS2_METATYPE_IN   5
 
#define GFS2_METATYPE_LF   6
 
#define GFS2_METATYPE_JD   7
 
#define GFS2_METATYPE_LH   8
 
#define GFS2_METATYPE_LD   9
 
#define GFS2_METATYPE_LB   12
 
#define GFS2_METATYPE_EA   10
 
#define GFS2_METATYPE_ED   11
 
#define GFS2_METATYPE_QC   14
 
#define GFS2_SB_ADDR   128
 
#define GFS2_SB_LOCK   0
 
#define GFS2_LOCKNAME_LEN   64
 
#define GFS2_HAS_UUID   1
 
#define GFS2_NBBY   4
 
#define GFS2_BIT_SIZE   2
 
#define GFS2_BIT_MASK   0x00000003
 
#define GFS2_BLKST_FREE   0
 
#define GFS2_BLKST_USED   1
 
#define GFS2_BLKST_UNLINKED   2
 
#define GFS2_BLKST_DINODE   3
 
#define GFS2_RGF_JOURNAL   0x00000001
 
#define GFS2_RGF_METAONLY   0x00000002
 
#define GFS2_RGF_DATAONLY   0x00000004
 
#define GFS2_RGF_NOALLOC   0x00000008
 
#define GFS2_RGF_TRIMMED   0x00000010
 
#define GFS2_MAX_META_HEIGHT   10
 
#define GFS2_DIR_MAX_DEPTH   17
 
#define DT2IF(dt)   (((dt) << 12) & S_IFMT)
 
#define IF2DT(sif)   (((sif) & S_IFMT) >> 12)
 
#define GFS2_DIF_JDATA   0x00000001
 
#define GFS2_DIF_EXHASH   0x00000002
 
#define GFS2_DIF_UNUSED   0x00000004 /* only in gfs1 */
 
#define GFS2_DIF_EA_INDIRECT   0x00000008
 
#define GFS2_DIF_DIRECTIO   0x00000010
 
#define GFS2_DIF_IMMUTABLE   0x00000020
 
#define GFS2_DIF_APPENDONLY   0x00000040
 
#define GFS2_DIF_NOATIME   0x00000080
 
#define GFS2_DIF_SYNC   0x00000100
 
#define GFS2_DIF_SYSTEM   0x00000200 /* New in gfs2 */
 
#define GFS2_DIF_TOPDIR   0x00000400 /* New in gfs2 */
 
#define GFS2_DIF_TRUNC_IN_PROG   0x20000000 /* New in gfs2 */
 
#define GFS2_DIF_INHERIT_DIRECTIO   0x40000000 /* only in gfs1 */
 
#define GFS2_DIF_INHERIT_JDATA   0x80000000
 
#define GFS2_FNAMESIZE   255
 
#define GFS2_DIRENT_SIZE(name_len)   ((sizeof(struct gfs2_dirent) + (name_len) + 7) & ~7)
 
#define GFS2_EA_MAX_NAME_LEN   255
 
#define GFS2_EA_MAX_DATA_LEN   65536
 
#define GFS2_EATYPE_UNUSED   0
 
#define GFS2_EATYPE_USR   1
 
#define GFS2_EATYPE_SYS   2
 
#define GFS2_EATYPE_SECURITY   3
 
#define GFS2_EATYPE_LAST   3
 
#define GFS2_EATYPE_VALID(x)   ((x) <= GFS2_EATYPE_LAST)
 
#define GFS2_EAFLAG_LAST   0x01 /* last ea in block */
 
#define GFS2_LOG_HEAD_UNMOUNT   0x00000001 /* log is clean */
 
#define GFS2_LOG_DESC_METADATA   300
 
#define GFS2_LOG_DESC_REVOKE   301
 
#define GFS2_LOG_DESC_JDATA   302
 
#define GFS2_INUM_QUANTUM   1048576
 
#define GFS2_QCF_USER   0x00000001
 

Enumerations

enum  {
  gfs2fl_Jdata = 0, gfs2fl_ExHash = 1, gfs2fl_Unused = 2, gfs2fl_EaIndirect = 3,
  gfs2fl_Directio = 4, gfs2fl_Immutable = 5, gfs2fl_AppendOnly = 6, gfs2fl_NoAtime = 7,
  gfs2fl_Sync = 8, gfs2fl_System = 9, gfs2fl_TopLevel = 10, gfs2fl_TruncInProg = 29,
  gfs2fl_InheritDirectio = 30, gfs2fl_InheritJdata = 31
}
 

Macro Definition Documentation

#define DT2IF (   dt)    (((dt) << 12) & S_IFMT)

Definition at line 213 of file gfs2_ondisk.h.

#define GFS2_BASIC_BLOCK   512

Definition at line 16 of file gfs2_ondisk.h.

#define GFS2_BASIC_BLOCK_SHIFT   9

Definition at line 17 of file gfs2_ondisk.h.

#define GFS2_BIT_MASK   0x00000003

Definition at line 160 of file gfs2_ondisk.h.

#define GFS2_BIT_SIZE   2

Definition at line 159 of file gfs2_ondisk.h.

#define GFS2_BLKST_DINODE   3

Definition at line 165 of file gfs2_ondisk.h.

#define GFS2_BLKST_FREE   0

Definition at line 162 of file gfs2_ondisk.h.

#define GFS2_BLKST_UNLINKED   2

Definition at line 164 of file gfs2_ondisk.h.

#define GFS2_BLKST_USED   1

Definition at line 163 of file gfs2_ondisk.h.

#define GFS2_CONTROL_LOCK   4

Definition at line 25 of file gfs2_ondisk.h.

#define GFS2_DIF_APPENDONLY   0x00000040

Definition at line 240 of file gfs2_ondisk.h.

#define GFS2_DIF_DIRECTIO   0x00000010

Definition at line 238 of file gfs2_ondisk.h.

#define GFS2_DIF_EA_INDIRECT   0x00000008

Definition at line 237 of file gfs2_ondisk.h.

#define GFS2_DIF_EXHASH   0x00000002

Definition at line 235 of file gfs2_ondisk.h.

#define GFS2_DIF_IMMUTABLE   0x00000020

Definition at line 239 of file gfs2_ondisk.h.

#define GFS2_DIF_INHERIT_DIRECTIO   0x40000000 /* only in gfs1 */

Definition at line 246 of file gfs2_ondisk.h.

#define GFS2_DIF_INHERIT_JDATA   0x80000000

Definition at line 247 of file gfs2_ondisk.h.

#define GFS2_DIF_JDATA   0x00000001

Definition at line 234 of file gfs2_ondisk.h.

#define GFS2_DIF_NOATIME   0x00000080

Definition at line 241 of file gfs2_ondisk.h.

#define GFS2_DIF_SYNC   0x00000100

Definition at line 242 of file gfs2_ondisk.h.

#define GFS2_DIF_SYSTEM   0x00000200 /* New in gfs2 */

Definition at line 243 of file gfs2_ondisk.h.

#define GFS2_DIF_TOPDIR   0x00000400 /* New in gfs2 */

Definition at line 244 of file gfs2_ondisk.h.

#define GFS2_DIF_TRUNC_IN_PROG   0x20000000 /* New in gfs2 */

Definition at line 245 of file gfs2_ondisk.h.

#define GFS2_DIF_UNUSED   0x00000004 /* only in gfs1 */

Definition at line 236 of file gfs2_ondisk.h.

#define GFS2_DIR_MAX_DEPTH   17

Definition at line 211 of file gfs2_ondisk.h.

#define GFS2_DIRENT_SIZE (   name_len)    ((sizeof(struct gfs2_dirent) + (name_len) + 7) & ~7)

Definition at line 299 of file gfs2_ondisk.h.

#define GFS2_EA_MAX_DATA_LEN   65536

Definition at line 352 of file gfs2_ondisk.h.

#define GFS2_EA_MAX_NAME_LEN   255

Definition at line 351 of file gfs2_ondisk.h.

#define GFS2_EAFLAG_LAST   0x01 /* last ea in block */

Definition at line 362 of file gfs2_ondisk.h.

#define GFS2_EATYPE_LAST   3

Definition at line 359 of file gfs2_ondisk.h.

#define GFS2_EATYPE_SECURITY   3

Definition at line 357 of file gfs2_ondisk.h.

#define GFS2_EATYPE_SYS   2

Definition at line 356 of file gfs2_ondisk.h.

#define GFS2_EATYPE_UNUSED   0

Definition at line 354 of file gfs2_ondisk.h.

#define GFS2_EATYPE_USR   1

Definition at line 355 of file gfs2_ondisk.h.

#define GFS2_EATYPE_VALID (   x)    ((x) <= GFS2_EATYPE_LAST)

Definition at line 360 of file gfs2_ondisk.h.

#define GFS2_FNAMESIZE   255

Definition at line 298 of file gfs2_ondisk.h.

#define GFS2_FORMAT_DE   1200

Definition at line 46 of file gfs2_ondisk.h.

#define GFS2_FORMAT_DI   400

Definition at line 34 of file gfs2_ondisk.h.

#define GFS2_FORMAT_EA   1600

Definition at line 41 of file gfs2_ondisk.h.

#define GFS2_FORMAT_ED   1700

Definition at line 42 of file gfs2_ondisk.h.

#define GFS2_FORMAT_FS   1801

Definition at line 49 of file gfs2_ondisk.h.

#define GFS2_FORMAT_IN   500

Definition at line 35 of file gfs2_ondisk.h.

#define GFS2_FORMAT_JD   700

Definition at line 37 of file gfs2_ondisk.h.

#define GFS2_FORMAT_LB   1000

Definition at line 40 of file gfs2_ondisk.h.

#define GFS2_FORMAT_LD   900

Definition at line 39 of file gfs2_ondisk.h.

#define GFS2_FORMAT_LF   600

Definition at line 36 of file gfs2_ondisk.h.

#define GFS2_FORMAT_LH   800

Definition at line 38 of file gfs2_ondisk.h.

#define GFS2_FORMAT_MULTI   1900

Definition at line 50 of file gfs2_ondisk.h.

#define GFS2_FORMAT_NONE   0

Definition at line 30 of file gfs2_ondisk.h.

#define GFS2_FORMAT_QC   1400

Definition at line 43 of file gfs2_ondisk.h.

#define GFS2_FORMAT_QU   1500

Definition at line 47 of file gfs2_ondisk.h.

#define GFS2_FORMAT_RB   300

Definition at line 33 of file gfs2_ondisk.h.

#define GFS2_FORMAT_RG   200

Definition at line 32 of file gfs2_ondisk.h.

#define GFS2_FORMAT_RI   1100

Definition at line 45 of file gfs2_ondisk.h.

#define GFS2_FORMAT_SB   100

Definition at line 31 of file gfs2_ondisk.h.

#define GFS2_HAS_UUID   1

Definition at line 132 of file gfs2_ondisk.h.

#define GFS2_INUM_QUANTUM   1048576

Definition at line 423 of file gfs2_ondisk.h.

#define GFS2_LIVE_LOCK   1

Definition at line 22 of file gfs2_ondisk.h.

#define GFS2_LOCKNAME_LEN   64

Definition at line 110 of file gfs2_ondisk.h.

#define GFS2_LOG_DESC_JDATA   302

Definition at line 402 of file gfs2_ondisk.h.

#define GFS2_LOG_DESC_METADATA   300

Definition at line 394 of file gfs2_ondisk.h.

#define GFS2_LOG_DESC_REVOKE   301

Definition at line 398 of file gfs2_ondisk.h.

#define GFS2_LOG_HEAD_UNMOUNT   0x00000001 /* log is clean */

Definition at line 378 of file gfs2_ondisk.h.

#define GFS2_MAGIC   0x01161970

Definition at line 15 of file gfs2_ondisk.h.

#define GFS2_MAX_META_HEIGHT   10

Definition at line 210 of file gfs2_ondisk.h.

#define GFS2_METATYPE_DI   4

Definition at line 70 of file gfs2_ondisk.h.

#define GFS2_METATYPE_EA   10

Definition at line 77 of file gfs2_ondisk.h.

#define GFS2_METATYPE_ED   11

Definition at line 78 of file gfs2_ondisk.h.

#define GFS2_METATYPE_IN   5

Definition at line 71 of file gfs2_ondisk.h.

#define GFS2_METATYPE_JD   7

Definition at line 73 of file gfs2_ondisk.h.

#define GFS2_METATYPE_LB   12

Definition at line 76 of file gfs2_ondisk.h.

#define GFS2_METATYPE_LD   9

Definition at line 75 of file gfs2_ondisk.h.

#define GFS2_METATYPE_LF   6

Definition at line 72 of file gfs2_ondisk.h.

#define GFS2_METATYPE_LH   8

Definition at line 74 of file gfs2_ondisk.h.

#define GFS2_METATYPE_NONE   0

Definition at line 66 of file gfs2_ondisk.h.

#define GFS2_METATYPE_QC   14

Definition at line 79 of file gfs2_ondisk.h.

#define GFS2_METATYPE_RB   3

Definition at line 69 of file gfs2_ondisk.h.

#define GFS2_METATYPE_RG   2

Definition at line 68 of file gfs2_ondisk.h.

#define GFS2_METATYPE_SB   1

Definition at line 67 of file gfs2_ondisk.h.

#define GFS2_MOUNT_LOCK   0

Definition at line 21 of file gfs2_ondisk.h.

#define GFS2_MOUNTED_LOCK   5

Definition at line 26 of file gfs2_ondisk.h.

#define GFS2_NBBY   4

Definition at line 158 of file gfs2_ondisk.h.

#define GFS2_QCF_USER   0x00000001

Definition at line 448 of file gfs2_ondisk.h.

#define GFS2_RENAME_LOCK   3

Definition at line 24 of file gfs2_ondisk.h.

#define GFS2_RGF_DATAONLY   0x00000004

Definition at line 169 of file gfs2_ondisk.h.

#define GFS2_RGF_JOURNAL   0x00000001

Definition at line 167 of file gfs2_ondisk.h.

#define GFS2_RGF_METAONLY   0x00000002

Definition at line 168 of file gfs2_ondisk.h.

#define GFS2_RGF_NOALLOC   0x00000008

Definition at line 170 of file gfs2_ondisk.h.

#define GFS2_RGF_TRIMMED   0x00000010

Definition at line 171 of file gfs2_ondisk.h.

#define GFS2_SB_ADDR   128

Definition at line 103 of file gfs2_ondisk.h.

#define GFS2_SB_LOCK   0

Definition at line 106 of file gfs2_ondisk.h.

#define GFS2_TRANS_LOCK   2

Definition at line 23 of file gfs2_ondisk.h.

#define IF2DT (   sif)    (((sif) & S_IFMT) >> 12)

Definition at line 214 of file gfs2_ondisk.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
gfs2fl_Jdata 
gfs2fl_ExHash 
gfs2fl_Unused 
gfs2fl_EaIndirect 
gfs2fl_Directio 
gfs2fl_Immutable 
gfs2fl_AppendOnly 
gfs2fl_NoAtime 
gfs2fl_Sync 
gfs2fl_System 
gfs2fl_TopLevel 
gfs2fl_TruncInProg 
gfs2fl_InheritDirectio 
gfs2fl_InheritJdata 

Definition at line 216 of file gfs2_ondisk.h.