[RFC][E2FSPROGS][PATCH 7/8]

Alexandre Ratchov <[email protected]>
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <[email protected]>
Introduce 64bit extents logical block number.


Index: e2fsprogs-upstream/lib/ext2fs/mkdir.c
===================================================================
--- e2fsprogs-upstream.orig/lib/ext2fs/mkdir.c	2006-05-18 13:59:52.000000000 +0200
+++ e2fsprogs-upstream/lib/ext2fs/mkdir.c	2006-05-18 14:00:26.000000000 +0200
@@ -99,6 +99,7 @@
 		 ex->ee_block = 0;
 		 ex->ee_start = blk;
 		 ex->ee_len = 1;
+		 ex->ee_unused = 0;
 
 		 inode.i_flags = EXT3_EXTENTS_FL;
 	} else {
Index: e2fsprogs-upstream/lib/ext2fs/ext3_extents.h
===================================================================
--- e2fsprogs-upstream.orig/lib/ext2fs/ext3_extents.h	2006-05-18 13:59:52.000000000 +0200
+++ e2fsprogs-upstream/lib/ext2fs/ext3_extents.h	2006-05-18 13:59:58.000000000 +0200
@@ -69,9 +69,10 @@
  * it's used at the bottom of the tree
  */
 struct ext3_extent {
-	__u32	ee_block;	/* first logical block extent covers */
-	__u16	ee_len;		/* number of blocks covered by extent */
+	__u64	ee_block;	/* first logical block extent covers */
 	__u64	ee_start;	/* physical block */
+	__u32	ee_len;		/* number of blocks covered by extent */
+	__u32	ee_unused;
 };
 
 /*
@@ -79,7 +80,7 @@
  * it's used at all the levels, but the bottom
  */
 struct ext3_extent_idx {
-	__u32	ei_block;	/* index covers logical blocks from 'block' */
+	__u64	ei_block;	/* index covers logical blocks from 'block' */
 	__u64	ei_leaf;	/* pointer to the physical block of the next *
 				 * level. leaf or next index could bet here */
 };


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.