diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/magic.h | 1 | ||||
| -rw-r--r-- | include/linux/minix_fs.h | 25 |
2 files changed, 25 insertions, 1 deletions
diff --git a/include/linux/magic.h b/include/linux/magic.h index b78bbf42135a..b32c8a97fcec 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #define MINIX_SUPER_MAGIC2 0x138F /* minix fs, 30 char names */ | 18 | #define MINIX_SUPER_MAGIC2 0x138F /* minix fs, 30 char names */ |
| 19 | #define MINIX2_SUPER_MAGIC 0x2468 /* minix V2 fs */ | 19 | #define MINIX2_SUPER_MAGIC 0x2468 /* minix V2 fs */ |
| 20 | #define MINIX2_SUPER_MAGIC2 0x2478 /* minix V2 fs, 30 char names */ | 20 | #define MINIX2_SUPER_MAGIC2 0x2478 /* minix V2 fs, 30 char names */ |
| 21 | #define MINIX3_SUPER_MAGIC 0x4d5a /* minix V3 fs */ | ||
| 21 | 22 | ||
| 22 | #define MSDOS_SUPER_MAGIC 0x4d44 /* MD */ | 23 | #define MSDOS_SUPER_MAGIC 0x4d44 /* MD */ |
| 23 | #define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */ | 24 | #define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */ |
diff --git a/include/linux/minix_fs.h b/include/linux/minix_fs.h index 916e8f72c63d..9850d513ff60 100644 --- a/include/linux/minix_fs.h +++ b/include/linux/minix_fs.h | |||
| @@ -25,7 +25,6 @@ | |||
| 25 | #define MINIX_ERROR_FS 0x0002 /* fs has errors. */ | 25 | #define MINIX_ERROR_FS 0x0002 /* fs has errors. */ |
| 26 | 26 | ||
| 27 | #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode))) | 27 | #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode))) |
| 28 | #define MINIX2_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix2_inode))) | ||
| 29 | 28 | ||
| 30 | /* | 29 | /* |
| 31 | * This is the original minix inode layout on disk. | 30 | * This is the original minix inode layout on disk. |
| @@ -75,9 +74,33 @@ struct minix_super_block { | |||
| 75 | __u32 s_zones; | 74 | __u32 s_zones; |
| 76 | }; | 75 | }; |
| 77 | 76 | ||
| 77 | /* | ||
| 78 | * V3 minix super-block data on disk | ||
| 79 | */ | ||
| 80 | struct minix3_super_block { | ||
| 81 | __u16 s_ninodes; | ||
| 82 | __u16 s_nzones; | ||
| 83 | __u16 s_pad0; | ||
| 84 | __u16 s_imap_blocks; | ||
| 85 | __u16 s_zmap_blocks; | ||
| 86 | __u16 s_firstdatazone; | ||
| 87 | __u16 s_log_zone_size; | ||
| 88 | __u16 s_pad1; | ||
| 89 | __u32 s_max_size; | ||
| 90 | __u32 s_zones; | ||
| 91 | __u16 s_magic; | ||
| 92 | __u16 s_pad2; | ||
| 93 | __u16 s_blocksize; | ||
| 94 | __u8 s_disk_version; | ||
| 95 | }; | ||
| 96 | |||
| 78 | struct minix_dir_entry { | 97 | struct minix_dir_entry { |
| 79 | __u16 inode; | 98 | __u16 inode; |
| 80 | char name[0]; | 99 | char name[0]; |
| 81 | }; | 100 | }; |
| 82 | 101 | ||
| 102 | struct minix3_dir_entry { | ||
| 103 | __u32 inode; | ||
| 104 | char name[0]; | ||
| 105 | }; | ||
| 83 | #endif | 106 | #endif |
