summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debugfs/ChangeLog5
-rw-r--r--debugfs/icheck.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog
index 3d7193d0..f5bc0012 100644
--- a/debugfs/ChangeLog
+++ b/debugfs/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-08 Theodore Ts'o <tytso@mit.edu>
+
+ * Fix bug in icheck which incorrectly reports the last valid inode
+ number as the owner for an EA block.
+
2005-12-10 Theodore Ts'o <tytso@mit.edu>
* debugfs.c, debugfs.h, logdump.c, ls.c: Clean up various gcc
diff --git a/debugfs/icheck.c b/debugfs/icheck.c
index 6c4b0a11..e3646def 100644
--- a/debugfs/icheck.c
+++ b/debugfs/icheck.c
@@ -109,6 +109,8 @@ void do_icheck(int argc, char **argv)
if (!inode.i_links_count)
goto next;
+ bw.inode = ino;
+
if (inode.i_file_acl) {
icheck_proc(current_fs, &inode.i_file_acl, 0,
0, 0, &bw);
@@ -125,8 +127,6 @@ void do_icheck(int argc, char **argv)
if (inode.i_dtime)
goto next;
- bw.inode = ino;
-
retval = ext2fs_block_iterate2(current_fs, ino, 0, block_buf,
icheck_proc, &bw);
if (retval) {