]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: don't clear . or .. in process_dir2_data
authorEric Sandeen <sandeen@sandeen.net>
Tue, 7 Apr 2015 00:04:11 +0000 (10:04 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 7 Apr 2015 00:04:11 +0000 (10:04 +1000)
commitb8ec08a1346d3a52a4ac4d4a414fc36aae272ee7
tree607b85d02b9bb224b181c4bc2141f4475b6a0adb
parentaedcecb505e99674f2168676e5f2942284085641
xfs_repair: don't clear . or .. in process_dir2_data

process_dir2_data() has special . and .. processing; it is able
to correct these inodes, so there is no reason to clear them.

Do this before we adjust a length 0 filename to length 1, so
that we don't take this action on an accidentally created "."
name from a hidden dotfile.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dir2.c