400a84068b47b92a45c30a756669062e7d81077c |
|
05-Feb-2015 |
Chao Yu <chao2.yu@samsung.com> |
fsck.f2fs: support large sector size Since f2fs support large sector size in commit 55cf9cb63f0e "f2fs: support large sector size", block device with sector size of 512/1024/2048/4096 bytes can be supported. But fsck.f2fs still use default F2FS_LOG_SECTOR_SIZE/F2FS_LOG_SECTORS_PER_BLOCK to verify related data in f2fs image, it's wrong, let's fix this issue in this patch. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.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/mount.c
|
7b5d1181a4663c9a55658791de6c04c30e52602a |
|
13-Nov-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: avoid false alarm on SIT type fix This patch removed a false alarm when detecting any inconsistency in SIT types. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
0f736527eb38eae3778b8be81921a9c458ad647f |
|
07-Nov-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
mkfs.f2fs: give a kernel version for initial format This is to identify when the format was done. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
c07795e73cbc509286e35193759e80d65ee12a44 |
|
07-Nov-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: trigger fsck.f2fs when new change was made This patch remains user specified triggering information in superblock. Then, if the information was changed, fsck.f2fs is triggered. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
f54dd91d065c15b84686a3fde7a096786e368201 |
|
06-Nov-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: fix SIT entry types Sometimes, SIT entry type is broken, so we need to rebuild it. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
20cc47abbad6e8aa7c0301ffa0f9947dad32a0dd |
|
19-Oct-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: show inline status of inode This patch adds to show inline status of each inode. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
4c992fe23ae6739767f584a96157d0585282d8e2 |
|
09-Oct-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: fix superblock offset The second offset should be F2FS_BLKSIZE + F2FS_SUPER_OFFSET. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.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/mount.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/mount.c
|
10d97dd1b386abcceec1b1bf590a3711d93e8c1c |
|
29-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: check next block is free or not If block allocation is made to the next block offset, we should drop that block. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
893312ced238b9ee93c5427aa6e6c1f29fe39899 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: fix checkpoint - fix nat entries - fix sit entries - fix checkpoint Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
6591dadcb05b7787dfa4c703728f773069dece04 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: handle correctly segment summary entries Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
fffeed796a79fa6621d01b0e4c5fa18d9d89cdd7 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: give a chance to recover sit entries This patch skips initial verfication on SIT entries, which checks the number of valid blocks from its bitmap. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
59c0e13ed90a6395e5cdaaed1608358c799bb0e4 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: cleanup mount.c Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.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/mount.c
|
02d04218720248f35ee2bcf4ca34c8b0e6e05140 |
|
28-Aug-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
fsck.f2fs: remove return value of get_node_info We don't need to get the return value. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
c246ccf8447c47801ae0912ca356831a18c77895 |
|
30-Jun-2014 |
Mark Salyzyn <salyzyn@google.com> |
f2fs-tools: 64-bit compile issue Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: I9398b877571d3dabbcb29c87a67d59672ea7fbaa Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.c
|
fd9816f31e5cd668962f00511d7a91d055d76048 |
|
12-May-2014 |
Changman Lee <cm224.lee@samsung.com> |
fsck.f2fs: large volume support This patch support large volume over about 3TB. Signed-off-by: Changman Lee <cm224.lee@samsung.com> [Jaegeuk Kim: add missing cp_payload in f2fs_super_block] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/fsck/mount.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/mount.c
|
858c4039c85f7c00c57925902985701b1e083555 |
|
05-Feb-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs, fsck: change the results for readability This patch cleans up several printing formats. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/mount.c
|
cd1e4704d0cbf1cbb49b3f33c576566b4b1e296e |
|
20-Aug-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
fsck, lib: support inline xattr This patch adjusts the modification to handle inline xattrs. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/mount.c
|
223fdf3e00a56cb32fb8c69dc4523ee53ff7731a |
|
30-Jul-2013 |
Changman Lee <cm224.lee@samsung.com> |
f2fs-tools: cleanup debug statement The debug message is too verbose therefore decrease message. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/fsck/mount.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/mount.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/mount.c
|