Fsync directory after creating or unlinking file.

Teodor Sigaev <teodor@sigaev.ru>

Commit: 1b02be21f271db6bd3cd43abb23fa596fcb6bac3
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2017-03-27T16:33:01Z
Releases: 10.0
Fsync directory after creating or unlinking file.

If file was created/deleted just before powerloss it's possible that
file system will miss that. To prevent it, call fsync() where creating/
unlinkg file is critical.

Author: Michael Paquier
Reviewed-by: Ashutosh Bapat, Takayuki Tsunakawa, me

Files