INJECT.F2FS(8) System Manager's Manual INJECT.F2FS(8)

inject.f2fs - inject a Linux F2FS file system

inject.f2fs [ options ] device

inject.f2fs is used to modify metadata or data (directory entry) of f2fs file system image offline flexibly.

Specify the level of debugging options.
Print the version number and exit.
Specify the member name in a struct that is injected.
New value to set if mb is a number.
New string to set if mb is a string.
Specify which slot is injected if mb is an array.
Specify which nid is injected.
Specify which blkaddr is injected.
Inject super block, its argument means which sb pack is injected, where 0 choses the current valid sb automatically. The available mb of sb are:
magic number.
s_stop_reason array.
s_errors array.
features.
path in devs array.
Inject checkpoint, its argument means which cp pack is injected, where 0 choses the current valid cp automatically. The available mb of cp are:
checkpoint version.
checkpoint flags.
cur_node_segno array.
cur_node_blkoff array.
cur_data_segno array.
cur_data_blkoff array.
fsync dnodes.
alloc_type array.
crc checksum.
elapsed mount time.
Inject nat entry specified by nid, its argument means which nat pack is injected, where 0 choses the current valid nat automatically. The available mb of nat are:
nat entry version.
nat entry ino.
nat entry block_addr.
Inject sit entry specified by blk, its argument means which sit pack is injected, where 0 choses the current valid sit automatically. The available mb of sit are:
sit entry vblocks.
sit entry valid_map.
sit entry mtime.
Inject summary block or summary entry specified by blk. The available mb of ssa are:
summary block footer entry_type.
summary block footer check_sum.
summary entry nid.
summary entry version.
summary entry ofs_in_node.
Inject node block specified by nid. The available mb of node are:
node footer nid.
node footer ino.
node footer flag.
node footer cp_ver.
node footer next_blkaddr.
inode i_mode.
inode i_advise.
inode i_inline.
inode i_links.
inode i_size.
inode i_blocks.
inode i_xattr_nid.
inode i_ext.fofs.
inode i_ext.blk_addr.
inode i_ext.len.
inode i_extra_isize.
inode i_inline_xattr_size.
inode i_inode_checksum.
inode i_compr_blocks.
inode i_addr array specified by idx.
inode i_nid array specified by idx.
{in}direct node nid/addr array specified by idx.
Inject dentry block or dir entry specified by nid.
The option means the "." or ".." directory entry of nid is going to be injected.
The available mb of dent are:
dentry block d_bitmap.
dentry hash.
dentry ino.
dentry ftype.
dentry filename, and corresponding d_hash and namelen are updated implicitly.
Do not really inject.

This version of inject.f2fs has been written by Sheng Yong <shengyong@oppo.com>.

inject.f2fs is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git.

mkfs.f2fs(8), fsck.f2fs(8), dump.f2fs(8), defrag.f2fs(8), resize.f2fs(8), sload.f2fs(8), defrag.f2fs(8).