linux/fs/squashfs/squashfs_fs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SQUASHFS_FS
#define SQUASHFS_FS
/*
 * Squashfs
 *
 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
 * Phillip Lougher <[email protected]>
 *
 * squashfs_fs.h
 */

#define SQUASHFS_CACHED_FRAGMENTS
#define SQUASHFS_MAJOR
#define SQUASHFS_MINOR
#define SQUASHFS_START

/* size of metadata (inode and directory) blocks */
#define SQUASHFS_METADATA_SIZE
#define SQUASHFS_BLOCK_OFFSET

/* default size of block device I/O */
#ifdef CONFIG_SQUASHFS_4K_DEVBLK_SIZE
#define SQUASHFS_DEVBLK_SIZE
#else
#define SQUASHFS_DEVBLK_SIZE
#endif

#define SQUASHFS_FILE_MAX_SIZE
#define SQUASHFS_FILE_MAX_LOG

/* Max length of filename (not 255) */
#define SQUASHFS_NAME_LEN

/* Max value for directory header count*/
#define SQUASHFS_DIR_COUNT

#define SQUASHFS_INVALID_FRAG
#define SQUASHFS_INVALID_XATTR
#define SQUASHFS_INVALID_BLK

/* Filesystem flags */
#define SQUASHFS_NOI
#define SQUASHFS_NOD
#define SQUASHFS_NOF
#define SQUASHFS_NO_FRAG
#define SQUASHFS_ALWAYS_FRAG
#define SQUASHFS_DUPLICATE
#define SQUASHFS_EXPORT
#define SQUASHFS_COMP_OPT

#define SQUASHFS_BIT(flag, bit)

#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)

/* Inode types including extended types */
#define SQUASHFS_DIR_TYPE
#define SQUASHFS_REG_TYPE
#define SQUASHFS_SYMLINK_TYPE
#define SQUASHFS_BLKDEV_TYPE
#define SQUASHFS_CHRDEV_TYPE
#define SQUASHFS_FIFO_TYPE
#define SQUASHFS_SOCKET_TYPE
#define SQUASHFS_LDIR_TYPE
#define SQUASHFS_LREG_TYPE
#define SQUASHFS_LSYMLINK_TYPE
#define SQUASHFS_LBLKDEV_TYPE
#define SQUASHFS_LCHRDEV_TYPE
#define SQUASHFS_LFIFO_TYPE
#define SQUASHFS_LSOCKET_TYPE

/* Max type value stored in directory entry */
#define SQUASHFS_MAX_DIR_TYPE

/* Xattr types */
#define SQUASHFS_XATTR_USER
#define SQUASHFS_XATTR_TRUSTED
#define SQUASHFS_XATTR_SECURITY
#define SQUASHFS_XATTR_VALUE_OOL
#define SQUASHFS_XATTR_PREFIX_MASK

/* Flag whether block is compressed or uncompressed, bit is set if block is
 * uncompressed */
#define SQUASHFS_COMPRESSED_BIT

#define SQUASHFS_COMPRESSED_SIZE(B)

#define SQUASHFS_COMPRESSED(B)

#define SQUASHFS_COMPRESSED_BIT_BLOCK

#define SQUASHFS_COMPRESSED_SIZE_BLOCK(B)

#define SQUASHFS_COMPRESSED_BLOCK(B)

static inline int squashfs_block_size(__le32 raw)
{}

/*
 * Inode number ops.  Inodes consist of a compressed block number, and an
 * uncompressed offset within that block
 */
#define SQUASHFS_INODE_BLK(A)

#define SQUASHFS_INODE_OFFSET(A)

#define SQUASHFS_MKINODE(A, B)

/* fragment and fragment table defines */
#define SQUASHFS_FRAGMENT_BYTES(A)

#define SQUASHFS_FRAGMENT_INDEX(A)

#define SQUASHFS_FRAGMENT_INDEX_OFFSET(A)

#define SQUASHFS_FRAGMENT_INDEXES(A)

#define SQUASHFS_FRAGMENT_INDEX_BYTES(A)

/* inode lookup table defines */
#define SQUASHFS_LOOKUP_BYTES(A)

#define SQUASHFS_LOOKUP_BLOCK(A)

#define SQUASHFS_LOOKUP_BLOCK_OFFSET(A)

#define SQUASHFS_LOOKUP_BLOCKS(A)

#define SQUASHFS_LOOKUP_BLOCK_BYTES(A)

/* uid/gid lookup table defines */
#define SQUASHFS_ID_BYTES(A)

#define SQUASHFS_ID_BLOCK(A)

#define SQUASHFS_ID_BLOCK_OFFSET(A)

#define SQUASHFS_ID_BLOCKS(A)

#define SQUASHFS_ID_BLOCK_BYTES(A)
/* xattr id lookup table defines */
#define SQUASHFS_XATTR_BYTES(A)

#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)

#define SQUASHFS_XATTR_OFFSET(A)

/* cached data constants for filesystem */
#define SQUASHFS_CACHED_BLKS

/* meta index cache */
#define SQUASHFS_META_INDEXES
#define SQUASHFS_META_ENTRIES
#define SQUASHFS_META_SLOTS

struct meta_entry {};

struct meta_index {};


/*
 * definitions for structures on disk
 */
#define ZLIB_COMPRESSION
#define LZMA_COMPRESSION
#define LZO_COMPRESSION
#define XZ_COMPRESSION
#define LZ4_COMPRESSION
#define ZSTD_COMPRESSION

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 {};

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 {};

#endif