fn maybe_sync_file(
    file: &File,
    writable: bool,
    operation: fn(_: &File) -> Result<()>
) -> Result<i32>