blob: c19d4f6a04c7aab98cf21d38945df0c13cbb7d39 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_MINIX_FS_H
20#define _LINUX_MINIX_FS_H
21#include <linux/types.h>
22#include <linux/magic.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define MINIX_ROOT_INO 1
25#define MINIX_LINK_MAX 250
26#define MINIX2_LINK_MAX 65530
27#define MINIX_I_MAP_SLOTS 8
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define MINIX_Z_MAP_SLOTS 64
30#define MINIX_VALID_FS 0x0001
31#define MINIX_ERROR_FS 0x0002
Tao Baod7db5942015-01-28 10:07:51 -080032#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE) / (sizeof(struct minix_inode)))
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34struct minix_inode {
Tao Baod7db5942015-01-28 10:07:51 -080035 __u16 i_mode;
36 __u16 i_uid;
37 __u32 i_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 i_time;
40 __u8 i_gid;
41 __u8 i_nlinks;
42 __u16 i_zone[9];
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45struct minix2_inode {
Tao Baod7db5942015-01-28 10:07:51 -080046 __u16 i_mode;
47 __u16 i_nlinks;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u16 i_uid;
50 __u16 i_gid;
51 __u32 i_size;
52 __u32 i_atime;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u32 i_mtime;
55 __u32 i_ctime;
56 __u32 i_zone[10];
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59struct minix_super_block {
Tao Baod7db5942015-01-28 10:07:51 -080060 __u16 s_ninodes;
61 __u16 s_nzones;
62 __u16 s_imap_blocks;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u16 s_zmap_blocks;
65 __u16 s_firstdatazone;
66 __u16 s_log_zone_size;
67 __u32 s_max_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u16 s_magic;
70 __u16 s_state;
71 __u32 s_zones;
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74struct minix3_super_block {
Tao Baod7db5942015-01-28 10:07:51 -080075 __u32 s_ninodes;
76 __u16 s_pad0;
77 __u16 s_imap_blocks;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u16 s_zmap_blocks;
80 __u16 s_firstdatazone;
81 __u16 s_log_zone_size;
82 __u16 s_pad1;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u32 s_max_size;
85 __u32 s_zones;
86 __u16 s_magic;
87 __u16 s_pad2;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u16 s_blocksize;
90 __u8 s_disk_version;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92struct minix_dir_entry {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u16 inode;
95 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97struct minix3_dir_entry {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 __u32 inode;
100 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102#endif
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */