Question about fsync in copy-up operaton
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
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