]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: add d_type when moving files to lost+found
authorEric Sandeen <sandeen@redhat.com>
Fri, 18 Oct 2013 17:59:36 +0000 (17:59 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 18 Oct 2013 18:25:30 +0000 (13:25 -0500)
commit2cca1dbd1c3e12d270a9baa5f85e548e8a5a2125
tree7117d7cd457226c710980fef195ff21878537c8e
parentdd536e1212d9008a182627b6333d69b2f8c1c393
xfs_repair: add d_type when moving files to lost+found

When we move disconnected inodes to lost+found, they aren't
assigned a dtype.  Fix this by just setting XFS_DIR3_FT_UNKNOWN
for now.  If the files are moved out of lost+found, the type
will be properly set at that time.

When repair gains more type knowledge we could use xfs_mode_to_ftype[]
to set the proper type when moved, but right now it's not a big
deal; UNKNOWN will suffice for files in lost+found, and prevents
us from using an uninitialized value.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/phase6.c