aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-05-13 15:13:37 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-05-13 15:13:37 +0800
commit88ff90bf492d4f3597f74daef020af26f3b9d8c4 (patch)
tree2813a324d58bcfc54d7d4d82309b448b338b9f5c
parentb6985a112b8a0e34d989d4a57555d0d7318c0718 (diff)
downloaddevel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.tar.gz
devel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.tar.xz
devel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.zip
Update README file and makes some cange in function ext4_find_leaf
-rw-r--r--README18
-rw-r--r--extlinux.c6
2 files changed, 21 insertions, 3 deletions
diff --git a/README b/README
index 3bd0ba0..15283a3 100644
--- a/README
+++ b/README
@@ -1,9 +1,25 @@
/************************************************************************
* This file is updated by the version number, so if you looked at my
- * last email, then you don't need to check the README version 0.1 part.
+ * last email, then you don't need to check last README version
************************************************************************/
+README version 0.4
+==================
+
+
+
+README version 0.3
+==================
+
+There're only little changes; Make the open_inode() function looks much
+simpiler by breaking it into more subfunctions, so two new functions
+introduced, they are:
+ 1) struct ext2_group_desc* get_group_desc(blokc_num);
+ 2) void read_inode(....);
+then a little more change on making it more C like.
+
+
README version 0.2
==================
diff --git a/extlinux.c b/extlinux.c
index ce494f3..e752fe5 100644
--- a/extlinux.c
+++ b/extlinux.c
@@ -349,14 +349,16 @@ ext4_find_leaf (struct ext4_extent_header *eh, __u32 block)
while (1) {
- index = EXT4_FIRST_INDEX(eh);
-
if (eh->eh_magic != EXT4_EXT_MAGIC)
return NULL;
+ /* got it */
if (eh->eh_depth == 0)
return eh;
+ index = EXT4_FIRST_INDEX(eh);
+
+
for ( i = 0; i < eh->eh_entries; i++ ) {
if ( block < index[i].ei_block )
break;