Skip to contentSkip to conversation

fsck.f2fs: fix wrong err message of check quota node

PATCH In review Yunlei He 2 participants 2 messages Jun 26, 2018

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH 1/1 fsck.f2fs: fix wrong err message of check quota node

This patch fix wrong err message of check quota node.

---
 fsck/fsck.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
fsck/fsck.c +3 -2
index 8145199..f9ed797 100644
@@ -1663,7 +1663,7 @@ int fsck_chk_quota_node(struct f2fs_sb_info *sbi)
 		nid_t ino = QUOTA_INO(sb, qtype);
 		struct node_info ni;
 
-		DBG(1, "[%3d] ino [0x%x]\n", qtype, ino);
+		DBG(1, "qtype [%d] ino [0x%x]\n", qtype, ino);
 		blk_cnt = 1;
 
 		if (c.preen_mode == PREEN_MODE_1 && !c.fix_on) {
@@ -1676,7 +1676,8 @@ int fsck_chk_quota_node(struct f2fs_sb_info *sbi)
 		ret = fsck_chk_node_blk(sbi, NULL, ino,
 				F2FS_FT_REG_FILE, TYPE_INODE, &blk_cnt, NULL);
 		if (ret)
-			ASSERT_MSG("[0x%x] wrong orphan inode", ino);
+			ASSERT_MSG("wrong quota inode, qtype [%d] ino [0x%x]",
+								qtype, ino);
 	}
 	return ret;
 }
Signature · 6 lines
1.9.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot