2015-12-22 23:55:34 +00:00
|
|
|
.\" Copyright (c) 2013 Samsung Electronics Co., Ltd.
|
|
|
|
.\"
|
|
|
|
.TH DUMP.F2FS 8
|
|
|
|
.SH NAME
|
|
|
|
dump.f2fs \- retrieve directory and file entries from an F2FS-formated image
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B dump.f2fs
|
|
|
|
[
|
|
|
|
.B \-i
|
|
|
|
.I inode number
|
|
|
|
]
|
|
|
|
[
|
2022-06-07 03:40:43 +00:00
|
|
|
.B \-I
|
|
|
|
.I inode number
|
|
|
|
]
|
|
|
|
[
|
2018-07-02 09:22:41 +00:00
|
|
|
.B \-n
|
|
|
|
.I NAT range
|
|
|
|
]
|
|
|
|
[
|
2021-06-13 03:42:47 +00:00
|
|
|
.B \-M
|
|
|
|
.I Block map
|
|
|
|
]
|
|
|
|
[
|
2015-12-22 23:55:34 +00:00
|
|
|
.B \-s
|
|
|
|
.I SIT range
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-a
|
|
|
|
.I SSA range
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-b
|
|
|
|
.I block address
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-d
|
|
|
|
.I debugging-level
|
|
|
|
]
|
|
|
|
.I device
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B dump.f2fs
|
|
|
|
is used to retrieve f2fs metadata (usually in a disk partition).
|
|
|
|
\fIdevice\fP is the special file corresponding to the device (e.g.
|
|
|
|
\fI/dev/sdXX\fP).
|
|
|
|
|
2018-07-02 09:22:41 +00:00
|
|
|
Currently, it can retrieve 1) a file given its inode number, 2) NAT
|
|
|
|
entries into a file, 3) SIT entries into a file, 4) SSA entries into
|
|
|
|
a file, 5) reverse information from the given block address.
|
2015-12-22 23:55:34 +00:00
|
|
|
.PP
|
|
|
|
The exit code returned by
|
|
|
|
.B dump.f2fs
|
|
|
|
is 0 on success and -1 on failure.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-i " inode number"
|
|
|
|
Specify an inode number to dump out.
|
|
|
|
.TP
|
2022-06-07 03:40:43 +00:00
|
|
|
.BI \-I " inode number"
|
|
|
|
Specify an inode number and scan full disk to dump out, include history inode block
|
|
|
|
.TP
|
2018-07-02 09:22:41 +00:00
|
|
|
.BI \-n " NAT range"
|
|
|
|
Specify a range presented by nids to dump NAT entries.
|
|
|
|
.TP
|
2021-06-13 03:42:47 +00:00
|
|
|
.BI \-M " Block map"
|
|
|
|
Show all the allocated block addresses given inode number.
|
|
|
|
.TP
|
2015-12-22 23:55:34 +00:00
|
|
|
.BI \-s " SIT range"
|
|
|
|
Specify a range presented by segment numbers to dump SIT entries.
|
|
|
|
.TP
|
|
|
|
.BI \-a " SSA range"
|
|
|
|
Specify a range presented by segment numbers to dump SSA entries.
|
|
|
|
.TP
|
|
|
|
.BI \-b " block address"
|
|
|
|
Specify a block address to retrieve its metadata information.
|
|
|
|
.TP
|
|
|
|
.BI \-d " debug-level"
|
|
|
|
Specify the level of debugging options.
|
|
|
|
The default number is 0, which shows basic debugging messages.
|
|
|
|
.TP
|
|
|
|
.SH AUTHOR
|
|
|
|
Initial checking code was written by Byoung Geun Kim <bgbg.kim@samsung.com>.
|
|
|
|
.SH AVAILABILITY
|
|
|
|
.B dump.f2fs
|
|
|
|
is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR mkfs.f2fs(8),
|
|
|
|
.BR fsck.f2fs(8),
|
2015-12-09 00:05:09 +00:00
|
|
|
.BR defrag.f2fs(8),
|
2015-12-10 00:18:44 +00:00
|
|
|
.BR resize.f2fs(8),
|
|
|
|
.BR sload.f2fs(8).
|