Add fsync option

Signed-off-by: flar2 <asegaert@gmail.com>