third_party_f2fs-tools/fsck
Jaegeuk Kim 390fe587b1 fsck.f2fs: support restore lost files into ./lost_found/
This patch adds to support restoring lost files into ./lost_found/.

For example,

 # fsck.f2fs /dev/sdXX

...
NID[0x87d7] is unreachable
NID[0x87d8] is unreachable
NID[0x87d9] is unreachable
[FSCK] Unreachable nat entries                        [Fail] [0x4988]
[FSCK] SIT valid block bitmap checking                [Fail]
[FSCK] Hard link checking for regular file            [Ok..] [0x0]
[FSCK] valid_block_count matching with CP             [Fail] [0x2]
[FSCK] valid_node_count matcing with CP (de lookup)   [Fail] [0x1]
[FSCK] valid_node_count matcing with CP (nat lookup)  [Ok..] [0x4989]
[FSCK] valid_inode_count matched with CP              [Fail] [0x1]
[FSCK] free segment_count matched with CP             [Ok..] [0x1f7]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FSCK] other corrupted bugs                           [Fail]

Do you want to restore lost files into ./lost_found/? [Y/N] y

Then, you can restore unreachable files from ./lost_found/ in its best effort.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2016-10-13 16:57:32 -07:00
..
defrag.c sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
dir.c sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
dump.c fsck.f2fs: support restore lost files into ./lost_found/ 2016-10-13 16:57:32 -07:00
f2fs.h sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
fsck.c fsck.f2fs: support restore lost files into ./lost_found/ 2016-10-13 16:57:32 -07:00
fsck.h fsck.f2fs: support restore lost files into ./lost_found/ 2016-10-13 16:57:32 -07:00
main.c fsck.f2fs: support restore lost files into ./lost_found/ 2016-10-13 16:57:32 -07:00
Makefile.am sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
mount.c fsck.f2fs: support restore lost files into ./lost_found/ 2016-10-13 16:57:32 -07:00
node.c sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
node.h sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
resize.c f2fs-tools: use shorter config variable name 2016-09-22 19:32:14 -07:00
segment.c sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
sload.c f2fs-tools: clean up and avoid build warning 2016-10-12 14:57:58 -07:00
xattr.c sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00
xattr.h sload.f2fs: support loading files into partition directly 2016-04-18 21:11:26 -04:00