linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* Data lost in Android app for not write new checkpoint
@ 2015-07-31  2:28 He YunLei
  2015-07-31  6:18 ` Chao Yu
  2015-07-31 10:49 ` Chao Yu
  0 siblings, 2 replies; 10+ messages in thread
From: He YunLei @ 2015-07-31  2:28 UTC (permalink / raw)
  To: linux-f2fs-devel, Jaegeuk Kim

Hi all,
	Recently I did some test with f2fs on my Android phone, and found a problem
which I didn't know how to tackle it.
	I use my Android phone with /data partition formatted  by mkfs.f2fs. When the
phone just started, I check the f2fs status by reading the file /sys/kernel/debug/f2fs/status
in debugfs.
	
CP calls: 10
GC calls: 19 (BG: 19)
   - data segments : 19 (19)
   - node segments : 0 (0)

	We can see /data partition has done 10 times write_checkpoint since f2fs is mounted
on the phone, it also has triggered 19 times background GC.

******

Here I took some photos consecutively, and check the file /sys/kernel/debug/f2fs/status again

******

CP calls: 10
GC calls: 20 (BG: 20)
   - data segments : 20 (20)
   - node segments : 0 (0)
	
	there is no change in CP calls number and background GC doesn't write new checkpoint.
if then a sudden power failure or system crash occur, the photos will be lost when the phone
restart, and a sync before crash will avoid the data lost.
	I think this problem is bad for user experience of using Android phone with f2fs.
How do we deal with such situation? I wish you and other developers in this list could help
me in a correct way.

Thanks,
He



------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-08-07  9:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31  2:28 Data lost in Android app for not write new checkpoint He YunLei
2015-07-31  6:18 ` Chao Yu
2015-07-31 10:49 ` Chao Yu
2015-07-31 12:00   ` Bintian
2015-08-04 13:16   ` He YunLei
2015-08-04 18:29     ` Jaegeuk Kim
2015-08-06 10:17     ` Chao Yu
2015-08-07  6:26       ` He YunLei
2015-08-07  9:18         ` Chao Yu
2015-08-07  9:50         ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).