pub fn write_active_generation_pointer( instance_dir: &Path, generation_id: Option<u64>, ) -> Result<()>