mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-12-03 16:21:36 +00:00
2c1ebe237a
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>
8 lines
85 B
Bash
Executable File
8 lines
85 B
Bash
Executable File
#!/bin/sh
|
|
|
|
aclocal && \
|
|
autoheader && \
|
|
autoconf && \
|
|
libtoolize && \
|
|
automake -a -c
|