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