Skip to contentSkip to conversation

f2fs_io: add fadvise support

PATCH In review Jaegeuk Kim 2 participants 2 messages Oct 3, 2023 – Oct 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs_io: add fadvise support

f2fs_io fadvise [advice] [offset] [length] [file]

advice can be "willneed" and "sequential".

---
 man/f2fs_io.8           |  3 +++
 tools/f2fs_io/f2fs_io.c | 42 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
man/f2fs_io.8 +3 -0
index 99e31dd5dbd4..ecaab029d48e 100644
@@ -47,6 +47,9 @@ going down with fsck mark
 \fBpinfile\fR \fI[get|set] [file]\fR
 Get or set the pinning status on a file.
 .TP
+\fBfadvise\fR \fI[advice] [offset] [length] [file]\fR
+Pass an advice to the specified file. The advice can be willneed and sequential.
+.TP
 \fBfallocate\fR \fI[-c] [-i] [-p] [-z] [keep_size] [offset] [length] [file]\fR
 Request that space be allocated on a file.  The
 .I keep_size
tools/f2fs_io/f2fs_io.c +42 -0

54 lines not on this page · raw message

Signature · 8 lines
2.42.0.582.g8ccd20d70d-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel