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

Go to the source code of this file.

Data Structures

struct  meta_entry
 
struct  meta_index
 
struct  squashfs_super_block
 
struct  squashfs_dir_index
 
struct  squashfs_base_inode
 
struct  squashfs_ipc_inode
 
struct  squashfs_lipc_inode
 
struct  squashfs_dev_inode
 
struct  squashfs_ldev_inode
 
struct  squashfs_symlink_inode
 
struct  squashfs_reg_inode
 
struct  squashfs_lreg_inode
 
struct  squashfs_dir_inode
 
struct  squashfs_ldir_inode
 
union  squashfs_inode
 
struct  squashfs_dir_entry
 
struct  squashfs_dir_header
 
struct  squashfs_fragment_entry
 
struct  squashfs_xattr_entry
 
struct  squashfs_xattr_val
 
struct  squashfs_xattr_id
 
struct  squashfs_xattr_id_table
 

Macros

#define SQUASHFS_CACHED_FRAGMENTS   CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE
 
#define SQUASHFS_MAJOR   4
 
#define SQUASHFS_MINOR   0
 
#define SQUASHFS_START   0
 
#define SQUASHFS_METADATA_SIZE   8192
 
#define SQUASHFS_DEVBLK_SIZE   1024
 
#define SQUASHFS_FILE_MAX_SIZE   1048576
 
#define SQUASHFS_FILE_MAX_LOG   20
 
#define SQUASHFS_NAME_LEN   256
 
#define SQUASHFS_DIR_COUNT   256
 
#define SQUASHFS_INVALID_FRAG   (0xffffffffU)
 
#define SQUASHFS_INVALID_XATTR   (0xffffffffU)
 
#define SQUASHFS_INVALID_BLK   (-1LL)
 
#define SQUASHFS_NOI   0
 
#define SQUASHFS_NOD   1
 
#define SQUASHFS_NOF   3
 
#define SQUASHFS_NO_FRAG   4
 
#define SQUASHFS_ALWAYS_FRAG   5
 
#define SQUASHFS_DUPLICATE   6
 
#define SQUASHFS_EXPORT   7
 
#define SQUASHFS_COMP_OPT   10
 
#define SQUASHFS_BIT(flag, bit)   ((flag >> bit) & 1)
 
#define SQUASHFS_UNCOMPRESSED_INODES(flags)
 
#define SQUASHFS_UNCOMPRESSED_DATA(flags)
 
#define SQUASHFS_UNCOMPRESSED_FRAGMENTS(flags)
 
#define SQUASHFS_NO_FRAGMENTS(flags)
 
#define SQUASHFS_ALWAYS_FRAGMENTS(flags)
 
#define SQUASHFS_DUPLICATES(flags)
 
#define SQUASHFS_EXPORTABLE(flags)
 
#define SQUASHFS_COMP_OPTS(flags)
 
#define SQUASHFS_DIR_TYPE   1
 
#define SQUASHFS_REG_TYPE   2
 
#define SQUASHFS_SYMLINK_TYPE   3
 
#define SQUASHFS_BLKDEV_TYPE   4
 
#define SQUASHFS_CHRDEV_TYPE   5
 
#define SQUASHFS_FIFO_TYPE   6
 
#define SQUASHFS_SOCKET_TYPE   7
 
#define SQUASHFS_LDIR_TYPE   8
 
#define SQUASHFS_LREG_TYPE   9
 
#define SQUASHFS_LSYMLINK_TYPE   10
 
#define SQUASHFS_LBLKDEV_TYPE   11
 
#define SQUASHFS_LCHRDEV_TYPE   12
 
#define SQUASHFS_LFIFO_TYPE   13
 
#define SQUASHFS_LSOCKET_TYPE   14
 
#define SQUASHFS_XATTR_USER   0
 
#define SQUASHFS_XATTR_TRUSTED   1
 
#define SQUASHFS_XATTR_SECURITY   2
 
#define SQUASHFS_XATTR_VALUE_OOL   256
 
#define SQUASHFS_XATTR_PREFIX_MASK   0xff
 
#define SQUASHFS_COMPRESSED_BIT   (1 << 15)
 
#define SQUASHFS_COMPRESSED_SIZE(B)
 
#define SQUASHFS_COMPRESSED(B)   (!((B) & SQUASHFS_COMPRESSED_BIT))
 
#define SQUASHFS_COMPRESSED_BIT_BLOCK   (1 << 24)
 
#define SQUASHFS_COMPRESSED_SIZE_BLOCK(B)
 
#define SQUASHFS_COMPRESSED_BLOCK(B)   (!((B) & SQUASHFS_COMPRESSED_BIT_BLOCK))
 
#define SQUASHFS_INODE_BLK(A)   ((unsigned int) ((A) >> 16))
 
#define SQUASHFS_INODE_OFFSET(A)   ((unsigned int) ((A) & 0xffff))
 
#define SQUASHFS_MKINODE(A, B)
 
#define SQUASHFS_FRAGMENT_BYTES(A)   ((A) * sizeof(struct squashfs_fragment_entry))
 
#define SQUASHFS_FRAGMENT_INDEX(A)
 
#define SQUASHFS_FRAGMENT_INDEX_OFFSET(A)
 
#define SQUASHFS_FRAGMENT_INDEXES(A)
 
#define SQUASHFS_FRAGMENT_INDEX_BYTES(A)
 
#define SQUASHFS_LOOKUP_BYTES(A)   ((A) * sizeof(u64))
 
#define SQUASHFS_LOOKUP_BLOCK(A)
 
#define SQUASHFS_LOOKUP_BLOCK_OFFSET(A)
 
#define SQUASHFS_LOOKUP_BLOCKS(A)
 
#define SQUASHFS_LOOKUP_BLOCK_BYTES(A)
 
#define SQUASHFS_ID_BYTES(A)   ((A) * sizeof(unsigned int))
 
#define SQUASHFS_ID_BLOCK(A)
 
#define SQUASHFS_ID_BLOCK_OFFSET(A)
 
#define SQUASHFS_ID_BLOCKS(A)
 
#define SQUASHFS_ID_BLOCK_BYTES(A)
 
#define SQUASHFS_XATTR_BYTES(A)   ((A) * sizeof(struct squashfs_xattr_id))
 
#define SQUASHFS_XATTR_BLOCK(A)
 
#define SQUASHFS_XATTR_BLOCK_OFFSET(A)
 
#define SQUASHFS_XATTR_BLOCKS(A)
 
#define SQUASHFS_XATTR_BLOCK_BYTES(A)
 
#define SQUASHFS_XATTR_BLK(A)   ((unsigned int) ((A) >> 16))
 
#define SQUASHFS_XATTR_OFFSET(A)   ((unsigned int) ((A) & 0xffff))
 
#define SQUASHFS_CACHED_BLKS   8
 
#define SQUASHFS_META_INDEXES   (SQUASHFS_METADATA_SIZE / sizeof(unsigned int))
 
#define SQUASHFS_META_ENTRIES   127
 
#define SQUASHFS_META_SLOTS   8
 
#define ZLIB_COMPRESSION   1
 
#define LZMA_COMPRESSION   2
 
#define LZO_COMPRESSION   3
 
#define XZ_COMPRESSION   4
 

Macro Definition Documentation

#define LZMA_COMPRESSION   2

Definition at line 237 of file squashfs_fs.h.

#define LZO_COMPRESSION   3

Definition at line 238 of file squashfs_fs.h.

#define SQUASHFS_ALWAYS_FRAG   5

Definition at line 59 of file squashfs_fs.h.

#define SQUASHFS_ALWAYS_FRAGMENTS (   flags)
Value:

Definition at line 78 of file squashfs_fs.h.

#define SQUASHFS_BIT (   flag,
  bit 
)    ((flag >> bit) & 1)

Definition at line 64 of file squashfs_fs.h.

#define SQUASHFS_BLKDEV_TYPE   4

Definition at line 94 of file squashfs_fs.h.

#define SQUASHFS_CACHED_BLKS   8

Definition at line 208 of file squashfs_fs.h.

#define SQUASHFS_CACHED_FRAGMENTS   CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE

Definition at line 26 of file squashfs_fs.h.

#define SQUASHFS_CHRDEV_TYPE   5

Definition at line 95 of file squashfs_fs.h.

#define SQUASHFS_COMP_OPT   10

Definition at line 62 of file squashfs_fs.h.

#define SQUASHFS_COMP_OPTS (   flags)
Value:

Definition at line 87 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED (   B)    (!((B) & SQUASHFS_COMPRESSED_BIT))

Definition at line 120 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED_BIT   (1 << 15)

Definition at line 115 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED_BIT_BLOCK   (1 << 24)

Definition at line 122 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED_BLOCK (   B)    (!((B) & SQUASHFS_COMPRESSED_BIT_BLOCK))

Definition at line 127 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED_SIZE (   B)
Value:

Definition at line 117 of file squashfs_fs.h.

#define SQUASHFS_COMPRESSED_SIZE_BLOCK (   B)
Value:

Definition at line 124 of file squashfs_fs.h.

#define SQUASHFS_DEVBLK_SIZE   1024

Definition at line 38 of file squashfs_fs.h.

#define SQUASHFS_DIR_COUNT   256

Definition at line 48 of file squashfs_fs.h.

#define SQUASHFS_DIR_TYPE   1

Definition at line 91 of file squashfs_fs.h.

#define SQUASHFS_DUPLICATE   6

Definition at line 60 of file squashfs_fs.h.

#define SQUASHFS_DUPLICATES (   flags)
Value:

Definition at line 81 of file squashfs_fs.h.

#define SQUASHFS_EXPORT   7

Definition at line 61 of file squashfs_fs.h.

#define SQUASHFS_EXPORTABLE (   flags)
Value:

Definition at line 84 of file squashfs_fs.h.

#define SQUASHFS_FIFO_TYPE   6

Definition at line 96 of file squashfs_fs.h.

#define SQUASHFS_FILE_MAX_LOG   20

Definition at line 42 of file squashfs_fs.h.

#define SQUASHFS_FILE_MAX_SIZE   1048576

Definition at line 41 of file squashfs_fs.h.

#define SQUASHFS_FRAGMENT_BYTES (   A)    ((A) * sizeof(struct squashfs_fragment_entry))

Definition at line 141 of file squashfs_fs.h.

#define SQUASHFS_FRAGMENT_INDEX (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 144 of file squashfs_fs.h.

#define SQUASHFS_FRAGMENT_INDEX_BYTES (   A)
Value:

Definition at line 154 of file squashfs_fs.h.

#define SQUASHFS_FRAGMENT_INDEX_OFFSET (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 147 of file squashfs_fs.h.

#define SQUASHFS_FRAGMENT_INDEXES (   A)
Value:
SQUASHFS_METADATA_SIZE - 1) / \

Definition at line 150 of file squashfs_fs.h.

#define SQUASHFS_ID_BLOCK (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 176 of file squashfs_fs.h.

#define SQUASHFS_ID_BLOCK_BYTES (   A)
Value:
sizeof(u64))

Definition at line 186 of file squashfs_fs.h.

#define SQUASHFS_ID_BLOCK_OFFSET (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 179 of file squashfs_fs.h.

#define SQUASHFS_ID_BLOCKS (   A)
Value:
SQUASHFS_METADATA_SIZE - 1) / \

Definition at line 182 of file squashfs_fs.h.

#define SQUASHFS_ID_BYTES (   A)    ((A) * sizeof(unsigned int))

Definition at line 174 of file squashfs_fs.h.

#define SQUASHFS_INODE_BLK (   A)    ((unsigned int) ((A) >> 16))

Definition at line 133 of file squashfs_fs.h.

#define SQUASHFS_INODE_OFFSET (   A)    ((unsigned int) ((A) & 0xffff))

Definition at line 135 of file squashfs_fs.h.

#define SQUASHFS_INVALID_BLK   (-1LL)

Definition at line 52 of file squashfs_fs.h.

#define SQUASHFS_INVALID_FRAG   (0xffffffffU)

Definition at line 50 of file squashfs_fs.h.

#define SQUASHFS_INVALID_XATTR   (0xffffffffU)

Definition at line 51 of file squashfs_fs.h.

#define SQUASHFS_LBLKDEV_TYPE   11

Definition at line 101 of file squashfs_fs.h.

#define SQUASHFS_LCHRDEV_TYPE   12

Definition at line 102 of file squashfs_fs.h.

#define SQUASHFS_LDIR_TYPE   8

Definition at line 98 of file squashfs_fs.h.

#define SQUASHFS_LFIFO_TYPE   13

Definition at line 103 of file squashfs_fs.h.

#define SQUASHFS_LOOKUP_BLOCK (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 160 of file squashfs_fs.h.

#define SQUASHFS_LOOKUP_BLOCK_BYTES (   A)
Value:

Definition at line 170 of file squashfs_fs.h.

#define SQUASHFS_LOOKUP_BLOCK_OFFSET (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 163 of file squashfs_fs.h.

#define SQUASHFS_LOOKUP_BLOCKS (   A)
Value:
SQUASHFS_METADATA_SIZE - 1) / \

Definition at line 166 of file squashfs_fs.h.

#define SQUASHFS_LOOKUP_BYTES (   A)    ((A) * sizeof(u64))

Definition at line 158 of file squashfs_fs.h.

#define SQUASHFS_LREG_TYPE   9

Definition at line 99 of file squashfs_fs.h.

#define SQUASHFS_LSOCKET_TYPE   14

Definition at line 104 of file squashfs_fs.h.

#define SQUASHFS_LSYMLINK_TYPE   10

Definition at line 100 of file squashfs_fs.h.

#define SQUASHFS_MAJOR   4

Definition at line 27 of file squashfs_fs.h.

#define SQUASHFS_META_ENTRIES   127

Definition at line 212 of file squashfs_fs.h.

#define SQUASHFS_META_INDEXES   (SQUASHFS_METADATA_SIZE / sizeof(unsigned int))

Definition at line 211 of file squashfs_fs.h.

#define SQUASHFS_META_SLOTS   8

Definition at line 213 of file squashfs_fs.h.

#define SQUASHFS_METADATA_SIZE   8192

Definition at line 32 of file squashfs_fs.h.

#define SQUASHFS_MINOR   0

Definition at line 28 of file squashfs_fs.h.

#define SQUASHFS_MKINODE (   A,
  B 
)
Value:
((long long)(((long long) (A)\
<< 16) + (B)))

Definition at line 137 of file squashfs_fs.h.

#define SQUASHFS_NAME_LEN   256

Definition at line 45 of file squashfs_fs.h.

#define SQUASHFS_NO_FRAG   4

Definition at line 58 of file squashfs_fs.h.

#define SQUASHFS_NO_FRAGMENTS (   flags)
Value:

Definition at line 75 of file squashfs_fs.h.

#define SQUASHFS_NOD   1

Definition at line 56 of file squashfs_fs.h.

#define SQUASHFS_NOF   3

Definition at line 57 of file squashfs_fs.h.

#define SQUASHFS_NOI   0

Definition at line 55 of file squashfs_fs.h.

#define SQUASHFS_REG_TYPE   2

Definition at line 92 of file squashfs_fs.h.

#define SQUASHFS_SOCKET_TYPE   7

Definition at line 97 of file squashfs_fs.h.

#define SQUASHFS_START   0

Definition at line 29 of file squashfs_fs.h.

#define SQUASHFS_SYMLINK_TYPE   3

Definition at line 93 of file squashfs_fs.h.

#define SQUASHFS_UNCOMPRESSED_DATA (   flags)
Value:

Definition at line 69 of file squashfs_fs.h.

#define SQUASHFS_UNCOMPRESSED_FRAGMENTS (   flags)
Value:

Definition at line 72 of file squashfs_fs.h.

#define SQUASHFS_UNCOMPRESSED_INODES (   flags)
Value:

Definition at line 66 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BLK (   A)    ((unsigned int) ((A) >> 16))

Definition at line 203 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BLOCK (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 191 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BLOCK_BYTES (   A)
Value:
sizeof(u64))

Definition at line 201 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BLOCK_OFFSET (   A)
Value:
SQUASHFS_METADATA_SIZE)

Definition at line 194 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BLOCKS (   A)
Value:
SQUASHFS_METADATA_SIZE - 1) / \

Definition at line 197 of file squashfs_fs.h.

#define SQUASHFS_XATTR_BYTES (   A)    ((A) * sizeof(struct squashfs_xattr_id))

Definition at line 189 of file squashfs_fs.h.

#define SQUASHFS_XATTR_OFFSET (   A)    ((unsigned int) ((A) & 0xffff))

Definition at line 205 of file squashfs_fs.h.

#define SQUASHFS_XATTR_PREFIX_MASK   0xff

Definition at line 111 of file squashfs_fs.h.

#define SQUASHFS_XATTR_SECURITY   2

Definition at line 109 of file squashfs_fs.h.

#define SQUASHFS_XATTR_TRUSTED   1

Definition at line 108 of file squashfs_fs.h.

#define SQUASHFS_XATTR_USER   0

Definition at line 107 of file squashfs_fs.h.

#define SQUASHFS_XATTR_VALUE_OOL   256

Definition at line 110 of file squashfs_fs.h.

#define XZ_COMPRESSION   4

Definition at line 239 of file squashfs_fs.h.

#define ZLIB_COMPRESSION   1

Definition at line 236 of file squashfs_fs.h.