dump.f2fs: support to show hex of filename
PATCH 1/1 dump.f2fs: support to show hex of filename
It can be used to dump hex of unicode/emoji/invisible filename.
i_name [❤]i_name(hex) [0xe2 0x9d 0xa4 0x0]
i_name [❤️]i_name(hex) [0xe2 0x9d 0xa4 0xef 0xb8 0x8f 0x0]
Signed-off-by Chao Yu <[email protected]>
--- fsck/mount.c | 5 +++++ 1 file changed, 5 insertions(+)
fsck/mount.c +5 -0
@@ -318,6 +318,11 @@ void print_inode_info(struct f2fs_sb_info *sbi,if (en[0 ]) {DISP_u32 (inode, i_namelen);printf ("%-30s\t\t[%s]\n" ,"i_name" , en); + +printf ("%-30s\t\t[" ,"i_name(hex)" ); +for (i =0 ; i <F2FS_NAME_LEN && en[i]; i++) +printf ("0x%x " , (unsigned char )en[i]); +printf ("0x%x]\n" , (unsigned char )en[i]); } printf("i_ext: fofs:%x blkaddr:%x len:%x\n",
Signature · 8 lines
2.48.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel