Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Jul 25, 2024
1 parent d289537 commit 4db788d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fsck/inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ static int inject_sit(struct f2fs_sb_info *sbi, struct inject_option *opt)
sit->valid_map[opt->idx] = (u8)opt->val;
} else if (!strcmp(opt->mb, "mtime")) {
MSG(0, "Info: inject sit entry mtime of block 0x%x "
"in pack %d: %lu -> %"PRIu64"\n", opt->blk, opt->sit,
"in pack %d: %"PRIu64" -> %"PRIu64"\n", opt->blk, opt->sit,
le64_to_cpu(sit->mtime), (u64)opt->val);
sit->mtime = cpu_to_le64((u64)opt->val);
} else {
Expand Down Expand Up @@ -754,7 +754,7 @@ static int inject_inode(struct f2fs_sb_info *sbi, struct f2fs_node *node,
opt->nid, le32_to_cpu(inode->i_links), (u32)opt->val);
inode->i_links = cpu_to_le32((u32)opt->val);
} else if (!strcmp(opt->mb, "i_size")) {
MSG(0, "Info: inject inode i_size of nid %u: %lu -> %"PRIu64"\n",
MSG(0, "Info: inject inode i_size of nid %u: %"PRIu64" -> %"PRIu64"\n",
opt->nid, le64_to_cpu(inode->i_size), (u64)opt->val);
inode->i_size = cpu_to_le64((u64)opt->val);
} else if (!strcmp(opt->mb, "i_blocks")) {
Expand Down Expand Up @@ -867,7 +867,7 @@ static int inject_node(struct f2fs_sb_info *sbi, struct inject_option *opt)
footer->flag = cpu_to_le32((u32)opt->val);
} else if (!strcmp(opt->mb, "cp_ver")) {
MSG(0, "Info: inject node footer cp_ver of nid %u: "
"0x%lx -> 0x%"PRIx64"\n", opt->nid, le64_to_cpu(footer->cp_ver),
"0x%"PRIx64" -> 0x%"PRIx64"\n", opt->nid, le64_to_cpu(footer->cp_ver),
(u64)opt->val);
footer->cp_ver = cpu_to_le64((u64)opt->val);
} else if (!strcmp(opt->mb, "next_blkaddr")) {
Expand Down

0 comments on commit 4db788d

Please sign in to comment.