1 .\" Generated by help2man 1.47.12.
2 .TH f2fs_io "8" "March 2020" "f2fs-tools" "System Administration Utilities"
4 f2fs_io \- f2fs ioctl utility
7 is used to send various commands to the f2fs file system for
8 administrative purposes.
9 .SH "AVAILABLE COMMANDS"
11 \fBset_verity\fR \fI[file]\fR
12 Set the verity flags associated with the specified file.
14 \fBgetflags\fR \fI[file]\fR
15 Get the flags associated with the specified file.
17 \fBsetflags\fR \fI[flag] [file]\fR
18 Set an f2fs file on specified file. The flag can be casefold,
19 compression, and nocompression.
21 \fBshutdown\fR \fIshutdown filesystem\fR
22 Freeze and stop all IOs for the file system mounted on
24 The level parameter can be:
28 going down with full sync
31 going down with checkpoint only
34 going down with no sync
37 going down with metadata flush
40 going down with fsck mark
43 \fBpinfile\fR \fI[get|set] [file]\fR
44 Get or set the pinning status on a file.
46 \fBfallocate\fR \fI[keep_size] [offset] [length] [file]\fR
47 Request that space be allocated on a file. The
49 parameter can be either 1 or 0.
51 \fBwrite\fR \fI[chunk_size in 4kb] [offset in chunk_size] [count] [pattern] [IO] [file_path]\fR
52 Write a given pattern to
81 direct I/O with O_DSYNC
84 \fBread\fR \fI[chunk_size in 4kb] [offset in chunk_size] [count] [IO] [print_nbytes] [file_path]\fR
101 \fBfiemap\fR \fI[offset in 4kb] [count] [file_path]\fR
102 get block address in file
104 \fBgc_urgent\fR \fIdev [start|end|run] [time in sec]\fR
105 Start, end, or run gc_urgent for a given time period
107 \fBdefrag_file\fR \fI[start] [length] [file_path]\fR
110 \fBcopy\fR \fI[-d] [-m] [-s] [src_path] [dst_path]\fR
111 Copy file from src_path to dst_path.
121 use mmap for source file
124 use sendfile to transfer data
127 \fBget_cblocks\fR \fI[file]\fR
128 Get the number of compressed blocks.
130 \fBrelease_cblocks\fR \fI[file]\fR
131 Release compressed blocks to get free space.
133 \fBreserve_cblocks\fR \fI[file]\fR
134 Reserve free blocks to prepare decompressing blocks in the file.
136 \fBgc\fR \fI[sync_mode] [file]\fR
137 Trigger filesystem GC
139 \fBcheckpoint\fR \fI[file]\fR
140 Trigger filesystem checkpoint
142 \fBprecache_extents\fR \fI[file]\fR
143 Trigger precache extents
145 \fBmove_range\fR \fI[src_path] [dst_path] [src_start] [dst_start] [length]\fR
146 Move a range of data blocks from source file to destination file
150 has been written by Jaegeuk Kim <jaegeuk@kernel.org>.
153 is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git.