On 2018/3/6 11:39, Sheng Yong wrote: > This patch introduces lost_found feature to fsck. If a file is found > unreachable by fsck. Fsck tries to reconnect the file to lost+found > directory: > 1. Scan all unreachable file inodes, ignore non-inodes ones and > directories. > 2. Check them and fix incorrupted data to make sure filesystem > metadata (mainly counters and main/nat bitmap) are all consistent. > 3. Reconnect these files to lost+found. If lost+found does not exist, > create it first. During reconnecting, expand lost+found's dentry > block automatically. Reconnected files are renamed after its ino > number. > 4. If reconnect fails drop the node and restore filesystem metadata. > > Signed-off-by: Sheng Yong <shengyo...@huawei.com>
Reviewed-by: Chao Yu <yuch...@huawei.com> Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel