linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* f2fs, sync, mopunt -o sync, power loss
@ 2014-10-29  9:37 Paolo Minazzi
  0 siblings, 0 replies; only message in thread
From: Paolo Minazzi @ 2014-10-29  9:37 UTC (permalink / raw)
  To: linux-f2fs-devel

I'm Paolo.
I'm integrating f2fs on an ARM board.
I do not have the power-off button.
The normal way to power-off is to cut-off the power.

I tried to mount in sync mode
     mount -t f2fs -o sync /dev/mmcblk0 /data
     echo Hello > /data/Hello.txt
I realize that if I cut-off the power after "echo" finishes, at the new 
boot I see that f2fs execute the recovery.

If I add the "sync" command
     mount -t f2fs -o sync /dev/mmcblk0 /data
     echo Hello > /data/Hello.txt
     sync
I realize that if I cut-off the power after "sync" finishes, at the new 
boot I do not see the f2fs
recovery and the boot process is faster.

This means that -o sync is different that execute a sync command after 
each write.

Is there a solution to force sync automatically after each write ?

I would like avoid the following ...
while true
do
     sync
     sleep 1
done

Thanks for your time and for this great project
Paolo Minazzi


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-29  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29  9:37 f2fs, sync, mopunt -o sync, power loss Paolo Minazzi

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).