blob: b08399ba87a8e6a73d423092a94bd41b565f9889 [file] [log] [blame]
Jaegeuk Kim52dedc62015-12-22 15:55:34 -08001.\" Copyright (c) 2015 Jaegeuk Kim <jaegeuk@kernel.org>
2.\"
3.TH DEFRAG.F2FS 8
4.SH NAME
5defrag.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
31is used to move specified number of blocks starting from a given block address
32to 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
36For example,
37# defrag.f2fs -s 0x4000 -l 0x100 -t 0x10000 -i /dev/sdb1
38
39This moves blocks between 0x4000 and 0x4100 to the left-hand area of 0x10000.
40
41.PP
42The exit code returned by
43.B defrag.f2fs
44is 0 on success and -1 on failure.
45.SH OPTIONS
46.TP
47.BI \-s " start block address"
48Specify the starting block address.
49.TP
50.BI \-l " number of blocks"
51Specifiy the number of blocks to move.
52.TP
53.BI \-t " target block address"
54Specify the destination block address.
55.TP
56.BI \-i " direction"
57Set the direction to left. If it is not set, the direction becomes right
58by default.
59.TP
60.BI \-d " debug-level"
61Specify the level of debugging options.
62The default number is 0, which shows basic debugging messages.
63.TP
64.SH AUTHOR
65This version of
66.B defrag.f2fs
67has been written by Jaegeuk Kim <jaegeuk@kernel.org>.
68.SH AVAILABILITY
69.B defrag.f2fs
70is 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 Kimd3be0882015-12-08 16:05:09 -080074.BR fsck.f2fs(8),
Jaegeuk Kim603f8f92015-12-09 16:18:44 -080075.BR resize.f2fs(8),
76.BR sload.f2fs(8).