All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] Can F2FS roll forward after fdatasync()?
@ 2020-05-28 15:34 Hongwei
  2020-05-28 17:26 ` Jaegeuk Kim
  0 siblings, 1 reply; 6+ messages in thread
From: Hongwei @ 2020-05-28 15:34 UTC (permalink / raw)
  To: linux-f2fs-devel

Hi F2FS experts,
As written in f2fs_do_sync_file():
"Both of fdatasync() and fsync() are able to be recovered from sudden-power-off."

Please consider this workflow:
1. Start atomic write
2. Multiple file writes
3. Commit atomic write
4. fdatasync()
5. Powerloss.

In the 4th step, the fdatasync() doesn't wait for node writeback.
So we may loss node blocks after powerloss.

If the data blocks are persisted but node blocks aren't, can the recovery program recover the transaction?

Thanks!

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

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

end of thread, other threads:[~2020-06-05  4:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 15:34 [f2fs-dev] Can F2FS roll forward after fdatasync()? Hongwei
2020-05-28 17:26 ` Jaegeuk Kim
2020-05-29 13:02   ` Hongwei
2020-06-03 17:18     ` Jaegeuk Kim
2020-06-04 13:24       ` Hongwei Qin
     [not found]       ` <CAKvRR0QjB8u-MnG7om5skFAg_y68vb5b2jjL-VdMOFhHcKqc2g@mail.gmail.com>
     [not found]         ` <20200604161332.GA187121@google.com>
2020-06-05  4:19           ` Hongwei Qin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.