linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Symlink not persisted even after fsync
@ 2018-04-12 17:51 Jayashree Mohan
  2018-04-13  5:52 ` Amir Goldstein
  0 siblings, 1 reply; 22+ messages in thread
From: Jayashree Mohan @ 2018-04-12 17:51 UTC (permalink / raw)
  To: linux-btrfs, fstests, linux-f2fs-devel; +Cc: Vijaychidambaram Velayudhan Pillai

Hi,

We came across what seems to be a crash consistency bug on btrfs and
f2fs. When we create a symlink for a file and fsync the symlink, on
recovery from crash, the fsync-ed file is missing.

You can reproduce this behaviour using this minimal workload :

1. symlink (foo, bar)
2. open bar
3. fsync bar
----crash here----

When we recover, we find that file bar is missing. This behaviour
seems unexpected as the fsynced file is lost on a crash. ext4 and xfs
correctly recovers file bar. This seems like a bug. If not, could you
explain why?

Do let me know if I am missing some detail here.

Thanks,
Jayashree Mohan

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

end of thread, other threads:[~2018-04-17  2:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-12 17:51 Symlink not persisted even after fsync Jayashree Mohan
2018-04-13  5:52 ` Amir Goldstein
2018-04-13 12:57   ` Vijay Chidambaram
     [not found]   ` <CAPaz=E+-baGSWhL3nD-8X4jn6rKdn2AVGLeqWh3EY5Nh-RodRA@mail.gmail.com>
2018-04-13 13:16     ` Amir Goldstein
2018-04-13 14:39       ` Jayashree Mohan
2018-04-14  1:20         ` Dave Chinner
2018-04-14  3:27           ` Vijay Chidambaram
2018-04-14 21:55             ` Dave Chinner
2018-04-15  1:13               ` Vijay Chidambaram
2018-04-15  1:30                 ` Theodore Y. Ts'o
2018-04-15  1:40                   ` Vijay Chidambaram
2018-04-15  1:17               ` Theodore Y. Ts'o
2018-04-15  1:38                 ` Vijay Chidambaram
     [not found]                 ` <CAHWVdUXAyyeTGNXrtTTc+tUbA3t9TUjJPSF=M4Cetj4+d1w3eQ@mail.gmail.com>
2018-04-15 14:13                   ` Theodore Y. Ts'o
2018-04-16  0:10                     ` Vijay Chidambaram
2018-04-16  5:39                       ` Amir Goldstein
2018-04-16 15:17                         ` Vijay Chidambaram
2018-04-16  5:52                       ` Theodore Y. Ts'o
2018-04-16 15:09                         ` Vijay Chidambaram
2018-04-17  0:07                       ` Dave Chinner
2018-04-17  2:56                         ` Vijay Chidambaram
2018-04-13 14:06   ` Dave Chinner

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