Whamcloud - gitweb
e2fsck: pass1c terminates early if hard links
authorJim Garlick <garlick@llnl.gov>
Wed, 11 Apr 2007 02:55:09 +0000 (22:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 11 Apr 2007 02:55:09 +0000 (22:55 -0400)
commit3d51ff876e707248a26031beb80ce29c395cd51e
treefcdcab8cb50c9f4781765092f11f6e6c7f138aa5
parenta4ea6b98f3c853d70bc08e01ce098c287c2ffd4c
e2fsck: pass1c terminates early if hard links

I think this is a small buglet in e2fsck:  if a file has multiple hard
links, e2fsck pass1c search_dirent_proc() doesn't maintain its count
properly and may return DIRENT_ABORT before it has found containing
directories for all inodes sharing blocks.

Signed-off-by: Jim Garlick <garlick@llnl.gov>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/ChangeLog
e2fsck/pass1b.c
tests/ChangeLog
tests/f_dup4/expect.1 [new file with mode: 0644]
tests/f_dup4/expect.2 [new file with mode: 0644]
tests/f_dup4/name [new file with mode: 0644]
tests/f_dup4/script [new file with mode: 0644]