linux/include/uapi/linux/minix_fs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _LINUX_MINIX_FS_H
#define _LINUX_MINIX_FS_H

#include <linux/types.h>
#include <linux/magic.h>

/*
 * The minix filesystem constants/structures
 */

/*
 * Thanks to Kees J Bot for sending me the definitions of the new
 * minix filesystem (aka V2) with bigger inodes and 32-bit block
 * pointers.
 */

#define MINIX_ROOT_INO

/* Not the same as the bogus LINK_MAX in <linux/limits.h>. Oh well. */
#define MINIX_LINK_MAX
#define MINIX2_LINK_MAX

#define MINIX_I_MAP_SLOTS
#define MINIX_Z_MAP_SLOTS
#define MINIX_VALID_FS
#define MINIX_ERROR_FS

#define MINIX_INODES_PER_BLOCK

/*
 * This is the original minix inode layout on disk.
 * Note the 8-bit gid and atime and ctime.
 */
struct minix_inode {};

/*
 * The new minix inode has all the time entries, as well as
 * long block numbers and a third indirect block (7+1+1+1
 * instead of 7+1+1). Also, some previously 8-bit values are
 * now 16-bit. The inode is now 64 bytes instead of 32.
 */
struct minix2_inode {};

/*
 * minix super-block data on disk
 */
struct minix_super_block {};

/*
 * V3 minix super-block data on disk
 */
struct minix3_super_block {};

struct minix_dir_entry {};

struct minix3_dir_entry {};
#endif