Hi Chao and Jaegeuk,

I encountered a problem with node footer data being corrupted on an
Android device.(kernel version 6.6 and android version:15)
after I merged the following patches, the problem still exists.
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?h=dev-test&id=eba08414c585f90760c4312f57dea78ea45cb5cb
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?h=dev-test&id=19426c4988aa85298c1b4caf2889d37ec5c80fea
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?h=dev-test&id=c2ecba026586cda6c7dc0fe9e6e60e7e9386c3bd
and there is no nat_bits in mount option.

I am still debugging, and would like to ask do you have any other
hints or suggestions?
The issue seem to be closely related to adb remount.

test steps:
ping 127.0.0.1 -n 20 > nul
adb.exe -s mydevice  wait-for-device
adb.exe  -s mydevice reboot bootloader
fastboot -s mydevice  erase userdata
fastboot -s mydevice  erase cache
fastboot -s mydevice  reboot
ping 127.0.0.1 -n 30 > nul
adb.exe -s mydevice wait-for-device
adb.exe -s mydevice root
adb.exe -s mydevice remount
adb.exe -s mydevice shell   rm -rf /data/somefile/*

dmesg:
dm-59: userdata partition, dm-7: scratch image partition is for adb remount
[    3.893630] F2FS-fs (dm-59): Using encoding defined by superblock:
utf8-12.1.0 with flags 0x0
[    3.930213] F2FS-fs (dm-59): Mounted with checkpoint version = 38485b2d
[   20.584169] F2FS-fs (dm-7): Mounted with checkpoint version = 42130ef
[   38.039122] F2FS-fs (dm-59): inconsistent node block, nid:1426,
node_footer[nid:129565021,ino:2756062298,ofs:26782845,cpver:6421703165179826912,blkaddr:3577851147]
[   38.048310] F2FS-fs (dm-59): inconsistent node block, nid:1426,
node_footer[nid:129565021,ino:2756062298,ofs:26782845,cpver:6421703165179826912,blkaddr:3577851147]
[   38.051725] F2FS-fs (dm-59): inconsistent node block, nid:1426,
node_footer[nid:129565021,ino:2756062298,ofs:26782845,cpver:6421703165179826912,blkaddr:3577851147]
thanks


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to