Skip to contentSkip to conversation

Question about fsync in copy-up operaton

DISCUSSION Chengguang Xu 2 participants 2 messages Feb 13, 2022 – Feb 15, 2022

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Chengguang Xu

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