linux/fs/udf/udf_sb.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_UDF_SB_H
#define __LINUX_UDF_SB_H

#include <linux/mutex.h>
#include <linux/bitops.h>
#include <linux/magic.h>

/*
 * Even UDF 2.6 media should have version <= 0x250 but apparently there are
 * some broken filesystems with version set to 0x260. Accommodate those.
 */
#define UDF_MAX_READ_VERSION
#define UDF_MAX_WRITE_VERSION

#define UDF_FLAG_USE_EXTENDED_FE
#define UDF_VERS_USE_EXTENDED_FE
#define UDF_FLAG_USE_STREAMS
#define UDF_VERS_USE_STREAMS
#define UDF_FLAG_USE_SHORT_AD
#define UDF_FLAG_USE_AD_IN_ICB
#define UDF_FLAG_USE_FILE_CTIME_EA
#define UDF_FLAG_STRICT
#define UDF_FLAG_UNDELETE
#define UDF_FLAG_UNHIDE
#define UDF_FLAG_NOVRS
#define UDF_FLAG_UID_FORGET
#define UDF_FLAG_GID_FORGET
#define UDF_FLAG_UID_SET
#define UDF_FLAG_GID_SET
#define UDF_FLAG_SESSION_SET
#define UDF_FLAG_LASTBLOCK_SET
#define UDF_FLAG_BLOCKSIZE_SET
#define UDF_FLAG_INCONSISTENT
#define UDF_FLAG_RW_INCOMPAT

#define UDF_PART_FLAG_UNALLOC_BITMAP
#define UDF_PART_FLAG_UNALLOC_TABLE
#define UDF_PART_FLAG_READ_ONLY
#define UDF_PART_FLAG_WRITE_ONCE
#define UDF_PART_FLAG_REWRITABLE
#define UDF_PART_FLAG_OVERWRITABLE

#define UDF_MAX_BLOCK_LOADED

#define UDF_TYPE1_MAP15
#define UDF_VIRTUAL_MAP15
#define UDF_VIRTUAL_MAP20
#define UDF_SPARABLE_MAP15
#define UDF_METADATA_MAP25

#define UDF_INVALID_MODE

#define MF_DUPLICATE_MD
#define MF_MIRROR_FE_LOADED

#define EFSCORRUPTED

struct udf_meta_data {};

struct udf_sparing_data {};

struct udf_virtual_data {};

struct udf_bitmap {};

struct udf_part_map {};

#pragma pack()

struct udf_sb_info {};

static inline struct udf_sb_info *UDF_SB(struct super_block *sb)
{}

struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb);

int udf_compute_nr_groups(struct super_block *sb, u32 partition);

static inline int UDF_QUERY_FLAG(struct super_block *sb, int flag)
{}

static inline void UDF_SET_FLAG(struct super_block *sb, int flag)
{}

static inline void UDF_CLEAR_FLAG(struct super_block *sb, int flag)
{}

#endif /* __LINUX_UDF_SB_H */