* Question about fsync in copy-up operaton
@ 2022-02-13 14:41 Chengguang Xu
2022-02-15 9:25 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: Chengguang Xu @ 2022-02-13 14:41 UTC (permalink / raw)
To: overlayfs
Hi Folks,
During copy-up when parent dir does not exist then will create parent
dir first.
However, I noticed only regular file calls fsync in the end of copy-up
operation,
so how newly created parent dir get synced in this case?
Thanks,
Chengguang
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about fsync in copy-up operaton
2022-02-13 14:41 Question about fsync in copy-up operaton Chengguang Xu
@ 2022-02-15 9:25 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2022-02-15 9:25 UTC (permalink / raw)
To: Chengguang Xu; +Cc: overlayfs
On Sun, 13 Feb 2022 at 15:56, Chengguang Xu <cgxu519@mykernel.net> wrote:
>
> Hi Folks,
>
> During copy-up when parent dir does not exist then will create parent
> dir first.
> However, I noticed only regular file calls fsync in the end of copy-up
> operation,
> so how newly created parent dir get synced in this case?
Looks like an oversight. It should fsync parent dir as well.
Thanks,
Miklos
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-15 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-13 14:41 Question about fsync in copy-up operaton Chengguang Xu
2022-02-15 9:25 ` Miklos Szeredi
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).