diff options
author | Changman Lee <cm224.lee@samsung.com> | 2013-07-04 04:12:47 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-07-30 02:17:02 -0400 |
commit | d51a7fba254b48aa7090a74d6b1455b6c41bc889 (patch) | |
tree | fbf3feef23a9ca0feb18cc64233a71996fb4b277 /Documentation/filesystems | |
parent | e5d2385ed6d8543a8884afc28aee44d46cfe64be (diff) |
f2fs: add description for fsck.f2fs and dump.f2fs
This patch adds some description on fsck.f2fs and dump.f2fs which is
recently merged into f2fs-tools.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/f2fs.txt | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index b91e2f26b672..0500c198cd08 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/Documentation/filesystems/f2fs.txt | |||
@@ -18,8 +18,8 @@ according to its internal geometry or flash memory management scheme, namely FTL | |||
18 | F2FS and its tools support various parameters not only for configuring on-disk | 18 | F2FS and its tools support various parameters not only for configuring on-disk |
19 | layout, but also for selecting allocation and cleaning algorithms. | 19 | layout, but also for selecting allocation and cleaning algorithms. |
20 | 20 | ||
21 | The file system formatting tool, "mkfs.f2fs", is available from the following | 21 | The following git tree provides the file system formatting tool (mkfs.f2fs), |
22 | git tree: | 22 | a consistency checking tool (fsck.f2fs), and a debugging tool (dump.f2fs). |
23 | >> git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git | 23 | >> git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git |
24 | 24 | ||
25 | For reporting bugs and sending patches, please use the following mailing list: | 25 | For reporting bugs and sending patches, please use the following mailing list: |
@@ -149,8 +149,12 @@ USAGE | |||
149 | # mkfs.f2fs -l label /dev/block_device | 149 | # mkfs.f2fs -l label /dev/block_device |
150 | # mount -t f2fs /dev/block_device /mnt/f2fs | 150 | # mount -t f2fs /dev/block_device /mnt/f2fs |
151 | 151 | ||
152 | Format options | 152 | mkfs.f2fs |
153 | -------------- | 153 | --------- |
154 | The mkfs.f2fs is for the use of formatting a partition as the f2fs filesystem, | ||
155 | which builds a basic on-disk layout. | ||
156 | |||
157 | The options consist of: | ||
154 | -l [label] : Give a volume label, up to 512 unicode name. | 158 | -l [label] : Give a volume label, up to 512 unicode name. |
155 | -a [0 or 1] : Split start location of each area for heap-based allocation. | 159 | -a [0 or 1] : Split start location of each area for heap-based allocation. |
156 | 1 is set by default, which performs this. | 160 | 1 is set by default, which performs this. |
@@ -164,6 +168,37 @@ Format options | |||
164 | -t [0 or 1] : Disable discard command or not. | 168 | -t [0 or 1] : Disable discard command or not. |
165 | 1 is set by default, which conducts discard. | 169 | 1 is set by default, which conducts discard. |
166 | 170 | ||
171 | fsck.f2fs | ||
172 | --------- | ||
173 | The fsck.f2fs is a tool to check the consistency of an f2fs-formatted | ||
174 | partition, which examines whether the filesystem metadata and user-made data | ||
175 | are cross-referenced correctly or not. | ||
176 | Note that, initial version of the tool does not fix any inconsistency. | ||
177 | |||
178 | The options consist of: | ||
179 | -d debug level [default:0] | ||
180 | |||
181 | dump.f2fs | ||
182 | --------- | ||
183 | The dump.f2fs shows the information of specific inode and dumps SSA and SIT to | ||
184 | file. Each file is dump_ssa and dump_sit. | ||
185 | |||
186 | The dump.f2fs is used to debug on-disk data structures of the f2fs filesystem. | ||
187 | It shows on-disk inode information reconized by a given inode number, and is | ||
188 | able to dump all the SSA and SIT entries into predefined files, ./dump_ssa and | ||
189 | ./dump_sit respectively. | ||
190 | |||
191 | The options consist of: | ||
192 | -d debug level [default:0] | ||
193 | -i inode no (hex) | ||
194 | -s [SIT dump segno from #1~#2 (decimal), for all 0~-1] | ||
195 | -a [SSA dump segno from #1~#2 (decimal), for all 0~-1] | ||
196 | |||
197 | Examples: | ||
198 | # dump.f2fs -i [ino] /dev/sdx | ||
199 | # dump.f2fs -s 0~-1 /dev/sdx (SIT dump) | ||
200 | # dump.f2fs -a 0~-1 /dev/sdx (SSA dump) | ||
201 | |||
167 | ================================================================================ | 202 | ================================================================================ |
168 | DESIGN | 203 | DESIGN |
169 | ================================================================================ | 204 | ================================================================================ |