diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-23 11:45:36 -0700 |
---|---|---|
committer | Greg Wallace <greg@gregtwallace.com> | 2016-01-19 22:02:20 -0500 |
commit | c18df71ec2d2a53827298f3c52c4b9b2f0c3a9fa (patch) | |
tree | 7a0b71d3b54ff0ebb85703b917ce8bf4ada057d5 /fsck/Makefile.am | |
parent | d19dbfc9a6617d1644f21272354daeb16f064bf5 (diff) | |
download | android_external_f2fs-tools-c18df71ec2d2a53827298f3c52c4b9b2f0c3a9fa.tar.gz android_external_f2fs-tools-c18df71ec2d2a53827298f3c52c4b9b2f0c3a9fa.tar.bz2 android_external_f2fs-tools-c18df71ec2d2a53827298f3c52c4b9b2f0c3a9fa.zip |
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.
Change-Id: I7d5e9368d4e597f35483adb16f9ab35daa445a38
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fsck/Makefile.am')
-rw-r--r-- | fsck/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fsck/Makefile.am b/fsck/Makefile.am index 6c19e11..73df884 100644 --- a/fsck/Makefile.am +++ b/fsck/Makefile.am @@ -3,8 +3,9 @@ AM_CPPFLAGS = ${libuuid_CFLAGS} -I$(top_srcdir)/include AM_CFLAGS = -Wall sbin_PROGRAMS = fsck.f2fs -fsck_f2fs_SOURCES = main.c fsck.c dump.c mount.c f2fs.h fsck.h $(top_srcdir)/include/f2fs_fs.h +fsck_f2fs_SOURCES = main.c fsck.c dump.c mount.c defrag.c f2fs.h fsck.h $(top_srcdir)/include/f2fs_fs.h fsck_f2fs_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la install-data-hook: ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/dump.f2fs + ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/defrag.f2fs |