3bcf2237352307b2e9820e635097358eda3d356e |
|
15-Jan-2015 |
Jaegeuk Kim <jaegeuk@kernel.org> |
dump.f2fs: show checkpoint flag This patch is to show the checkpoint flag. With this flag, we can guess the last status of the partition. And, this can be used by xfstests. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
c511d5d0ec5290dbf1e4e1bc8afc8ddd8feac4c4 |
|
13-Dec-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
dump.f2fs: dump owner of data given block address This patch introduces a feature to dump owner information of given block address. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
73b6e3eb4e944338edd80b4f27c29b7aa31c76f2 |
|
04-Sep-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
f2fs: rearrange options to remove redundant check This patch summarizes the usage of options. -a : auto_fix, fix corruption, only if f2fs reported some potential errors -f : force, fix corruption entire partition None : prompt, if fsck.f2fs detets any corruption Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
de6c1c7ce25841547813c71ca3b6d067300f0530 |
|
03-Sep-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: add auto_fix feature This patch adds an auto_fix feature which fixes inconsistency of f2fs images. E.g., With this option, -a, fsck.f2fs tries to fix inconsistency only if its valid checkpoint has CP_FSCK_FLAG, written by previous bug_on cases. So, normally it does fix nothing, so that there is no performance regression. But, if a sort of corruption was reported by the f2fs module, this tries to fix potential corrupted partition. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
3b4b82634489b2f9d367b1f897d51a341208d163 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: handle error cases Do sanity check first and then update metadata. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
f4ef4a14e978e7328037b43a8a6ec9d2a2d4bb5a |
|
27-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: retry to fix corrupted image This patch adds a facility to retry conducting fsck. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/main.c
|
c5786963aef93bb7747cb04454e1041738b3255f |
|
13-Jun-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
libf2fs, fsck, mkfs: call f2fs_finalize_device before exit The fsck tool should call f2fs_finalize_device before exit to close the device file. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Change-Id: I145413c94339d8941e4d7da8545ca017e76c61f2
/external/f2fs-tools/fsck/main.c
|
3c85e737308ef95629b232745d6a8d141d87cc9a |
|
14-May-2014 |
JP Abgrall <jpa@google.com> |
Cleanup various build warnings (signed vs unsigned, unused vars,...) * removed unused includes. * removed unused parameters. * Fixed a bunch of warnings around: int i; if (i < some_uint) ... and u32 x; ... if (x < 0) return error; * Protect BLKDISCARD usage if it is not available. Change-Id: Iede035b1beb2df01c961589a69aff47a5258ecd2 Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|
2c877a862d6d22ff5324e90b726c7d6a26febfb7 |
|
02-Aug-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
libf2fs: check more conditions on mounted filesystem In the case of lazy umount, "umount -l", some processes are able to use the file system even if its mountpoint was disconnected. At this moment, we should not allow mkfs.f2fs. This patch adds this condition check. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|
57baa23a3279a4b9e9df0ab92ee20a2c79b839d8 |
|
30-Jul-2013 |
Changman Lee <cm224.lee@samsung.com> |
f2fs-tools: add option to display directory tree This option shows directory tree of f2fs. Usage: fsck.f2fs -t /dev/sdx `-- p0 |-- f4 `-- d6 |-- f5e |-- cb6 |-- fdb |-- fe8 `-- l9a Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|
932f9845f6d6ab79815d80a1eb03b1b3509a4463 |
|
30-Jul-2013 |
Changman Lee <cm224.lee@samsung.com> |
f2fs-tools: use either hex or decimal options This patch supports both hex and decimal when using nid as option. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|
8843554c8c43e713e2ce4e36ac3c06f9eca94b09 |
|
18-Jul-2013 |
Changman Lee <cm224.lee@samsung.com> |
dump: dump inode information from blkaddr This patch is to dump inode which blkaddr belongs in. Usage: dump.f2fs /dev/sdx -b blk_addr (in 4KB) Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|
7f35b548d4b0e3c8577ad7a09433e589a0ab3f2a |
|
04-Jul-2013 |
Changman Lee <cm224.lee@samsung.com> |
f2fs-tools: add fsck.f2fs and dump.f2fs fsck.f2fs checks file system consistency, but does not repair a broken file system yet. dump.f2fs shows the information of a specific inode and makes dump file of SSA and SIT. f2fs checks file system consistency as follows: o When data about used area and its metadata are identical, f2fs is considered consistent. To verify such consistency, we use three bitmaps: nat_area_bitmap, sit_area_bitmap, and main_area_bitmap. First, each bit in nat_area_bitmap corresponds to a nid in NAT. Second, each bit in sit_area_bitmap corresponds to a valid block in a segment. This bitmap is same to the total valid_map of f2fs_sit_entries in SIT. Last, each bit in main_area_bitmap corresponds to a block in main area except meta area. After a consistency check of each block, we set or clear the corresponding bit of each bitmap. From the root node, we start consistency check. The verified information varies according to block type. 1. NODE - Read information of node block from NAT - Check if block address is allocated using node info. - Check if the type of f2fs_summary related to nid in SSA is NODE. - Update the corresponding bit in nat_area_bitmap. - Update the corresponding bit in sit_area_bitmap. - Set the corresponding bit in main_area_bitmap to 1. - Then, read node block. According to its attribute, explore inode/direct node/indirect node/double indirect node recursively. - If it is an inode block, we also check its xattr and hard link. 2. DATA - Check if the type of f2fs_summary related to nid in SSA is DATA. - Set the corresponding bits of sit_area_bitmap and main_area_bitmap to visited - If it is a dentry block, traverse each dentries that may be regular file or directory. At this time, it will check inode block again. Finally, we verify whether - every nat_area_bitmap is visited - any unreachable hard link exists - values of sit_area_bitmap and main_area_bitmap are identical - total_valid_block_count/node_count/inode_count are correct Usage: o fsck.f2fs # fsck.f2fs /dev/sdx options: -d debug level [default:0] o dump.f2fs # dump.f2fs -i [ino] /dev/sdx # dump.f2fs -s 0~-1 /dev/sdx (SIT dump) # dump.f2fs -a 0~-1 /dev/sdx (SSA dump) options: -d debug level [default:0] -i inode no (hex) -s [SIT dump segno from #1~#2 (decimal), for all 0~-1] -a [SSA dump segno from #1~#2 (decimal), for all 0~-1] Note: To use dump.f2fs, please run make install or ln -s fsck.f2fs dump.f2fs Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Byoung Geun Kim <bgbg.kim@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/main.c
|