Whamcloud - gitweb
e2fsck: don't set prev after processing '..' on an inline dir
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 10 Aug 2014 22:50:38 +0000 (18:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Aug 2014 22:50:38 +0000 (18:50 -0400)
commit6698374cc0a0d99c954aa61db771ba4128432337
tree264c5a8727cef98bd46973d5e83d761f83f5b2d8
parent4339c6d419a2209180487a1624ffbec0558cc0e4
e2fsck: don't set prev after processing '..' on an inline dir

In an inline directory, the '..' entry is compacted down to just the
inode number; there is no full '..' entry.  Therefore, it makes no
sense to assign 'prev' to the fake dotdot entry we put on the stack,
as this could confuse a salvage_directory call on a corrupted next
entry into modifying stack contents (the fake dotdot entry).

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass2.c