Jaegeuk Kim | 52dedc6 | 2015-12-22 15:55:34 -0800 | [diff] [blame] | 1 | .\" Copyright (c) 2015 Jaegeuk Kim <jaegeuk@kernel.org> |
| 2 | .\" |
| 3 | .TH DEFRAG.F2FS 8 |
| 4 | .SH NAME |
| 5 | defrag.f2fs \- relocate blocks in a given area to the specified region |
| 6 | .SH SYNOPSIS |
| 7 | .B defrag.f2fs |
| 8 | [ |
| 9 | .B \-s |
| 10 | .I start block address |
| 11 | ] |
| 12 | [ |
| 13 | .B \-l |
| 14 | .I number of blocks |
| 15 | ] |
| 16 | [ |
| 17 | .B \-t |
| 18 | .I target block address |
| 19 | ] |
| 20 | [ |
| 21 | .B \-i |
| 22 | .I direction |
| 23 | ] |
| 24 | [ |
| 25 | .B \-d |
| 26 | .I debugging-level |
| 27 | ] |
| 28 | .I device |
| 29 | .SH DESCRIPTION |
| 30 | .B defrag.f2fs |
| 31 | is used to move specified number of blocks starting from a given block address |
| 32 | to the target block address with a direction. |
| 33 | \fIdevice\fP is the special file corresponding to the device (e.g. |
| 34 | \fI/dev/sdXX\fP). |
| 35 | |
| 36 | For example, |
| 37 | # defrag.f2fs -s 0x4000 -l 0x100 -t 0x10000 -i /dev/sdb1 |
| 38 | |
| 39 | This moves blocks between 0x4000 and 0x4100 to the left-hand area of 0x10000. |
| 40 | |
| 41 | .PP |
| 42 | The exit code returned by |
| 43 | .B defrag.f2fs |
| 44 | is 0 on success and -1 on failure. |
| 45 | .SH OPTIONS |
| 46 | .TP |
| 47 | .BI \-s " start block address" |
| 48 | Specify the starting block address. |
| 49 | .TP |
| 50 | .BI \-l " number of blocks" |
| 51 | Specifiy the number of blocks to move. |
| 52 | .TP |
| 53 | .BI \-t " target block address" |
| 54 | Specify the destination block address. |
| 55 | .TP |
| 56 | .BI \-i " direction" |
| 57 | Set the direction to left. If it is not set, the direction becomes right |
| 58 | by default. |
| 59 | .TP |
| 60 | .BI \-d " debug-level" |
| 61 | Specify the level of debugging options. |
| 62 | The default number is 0, which shows basic debugging messages. |
| 63 | .TP |
| 64 | .SH AUTHOR |
| 65 | This version of |
| 66 | .B defrag.f2fs |
| 67 | has been written by Jaegeuk Kim <jaegeuk@kernel.org>. |
| 68 | .SH AVAILABILITY |
| 69 | .B defrag.f2fs |
| 70 | is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git. |
| 71 | .SH SEE ALSO |
| 72 | .BR mkfs.f2fs(8), |
| 73 | .BR dump.f2fs(8), |
Jaegeuk Kim | d3be088 | 2015-12-08 16:05:09 -0800 | [diff] [blame] | 74 | .BR fsck.f2fs(8), |
Jaegeuk Kim | 603f8f9 | 2015-12-09 16:18:44 -0800 | [diff] [blame] | 75 | .BR resize.f2fs(8), |
| 76 | .BR sload.f2fs(8). |