third_party_f2fs-tools/fsck
Jaegeuk Kim 2c1ebe237a defrag.f2fs: introduce defragmentation tool
This tool tries to move the valid blocks ranging from blkaddr to blkaddr + len
to targeted blkaddr with a direction like expand or shrink.

The option includes:
 -d debug level [default:0]
 -s start block address [default: main_blkaddr]
 -l length [default:512 (2MB)]
 -t target block address [default: main_blkaddr + 2MB]
 -i set direction as shrink [default: expand]

For example,
 # defrag.f2fs -s 0x100 -l 0x10 -t 0x4000 /dev/sdb1

This will move data blocks between 0x100 and 0x110 to the right side of
0x4000 space.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2015-12-11 15:58:50 -08:00
..
defrag.c defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00
dump.c fsck.f2fs: add segment type in sit_dump 2015-07-16 13:39:55 -07:00
f2fs.h defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00
fsck.c fsck.f2fs: LFS alloc_type must have free segment after blkoff 2015-12-11 15:57:51 -08:00
fsck.h defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00
main.c defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00
Makefile.am defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00
mount.c defrag.f2fs: introduce defragmentation tool 2015-12-11 15:58:50 -08:00