Whamcloud - gitweb
ChangeLog, icheck.c:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 19 Feb 1999 18:56:43 +0000 (18:56 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Feb 1999 18:56:43 +0000 (18:56 +0000)
  icheck.c (do_icheck): Check to make sure the inode has valid blocks
   before iterating over that inode's blocks.

debugfs/ChangeLog
debugfs/icheck.c

index 50c0c8e..88cfb54 100644 (file)
@@ -1,3 +1,8 @@
+1999-02-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * icheck.c (do_icheck): Check to make sure the inode has valid
+               blocks before iterating over that inode's blocks.
+
 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * Release of E2fsprogs 1.14
index 9e40611..968d457 100644 (file)
@@ -108,6 +108,8 @@ void do_icheck(int argc, char **argv)
        while (ino) {
                if (!inode.i_links_count)
                        goto next;
+               if (!ext2fs_inode_has_valid_blocks(&inode))
+                       goto next;
                /*
                 * To handle filesystems touched by 0.3c extfs; can be
                 * removed later.