Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH 1/3] mkfs.minix: add support for mkfs3
@ 2011-03-31 14:59 Davidlohr Bueso
  0 siblings, 0 replies; only message in thread
From: Davidlohr Bueso @ 2011-03-31 14:59 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux-ng

Add superblock layout for minix3 filesystem support.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 disk-utils/minix.h |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/disk-utils/minix.h b/disk-utils/minix.h
index 638565e..8952792 100644
--- a/disk-utils/minix.h
+++ b/disk-utils/minix.h
@@ -44,6 +44,24 @@ struct minix_super_block {
         u32 s_zones;
 };
 
+/* V3 minix super-block data on disk */
+struct minix3_super_block {
+	u32 s_ninodes;
+	u16 s_pad0;
+	u16 s_imap_blocks;
+	u16 s_zmap_blocks;
+	u16 s_firstdatazone;
+	u16 s_log_zone_size;
+	u16 s_pad1;
+	u32 s_max_size;
+	u32 s_zones;
+	u16 s_magic;
+	u16 s_pad2;
+	u16 s_blocksize;
+	u8  s_disk_version;
+        u16 s_state;
+};
+
 #define BLOCK_SIZE_BITS 10
 #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
 
@@ -59,5 +77,6 @@ struct minix_super_block {
 #define MINIX_SUPER_MAGIC2   0x138F          /* minix fs, 30 char names */
 #define MINIX2_SUPER_MAGIC   0x2468	     /* minix V2 fs */
 #define MINIX2_SUPER_MAGIC2  0x2478	     /* minix V2 fs, 30 char names */
+#define MINIX3_SUPER_MAGIC   0x4d5a	     /* minix V3 fs (60 char names) */
 
 #endif /* KERNEL_INCLUDES_ARE_CLEAN */
-- 
1.7.1





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-31 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 14:59 [PATCH 1/3] mkfs.minix: add support for mkfs3 Davidlohr Bueso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox