void backup_do_checkpoint(BlockJob *job, Error **errp)

{

    BackupBlockJob *backup_job = container_of(job, BackupBlockJob, common);

    int64_t len;



    assert(job->driver->job_type == BLOCK_JOB_TYPE_BACKUP);



    if (backup_job->sync_mode != MIRROR_SYNC_MODE_NONE) {

        error_setg(errp, "The backup job only supports block checkpoint in"

                   " sync=none mode");

        return;

    }



    len = DIV_ROUND_UP(backup_job->common.len, backup_job->cluster_size);

    bitmap_zero(backup_job->done_bitmap, len);

}

void backup_do_checkpoint(BlockJob *job, Error **errp)

{

    BackupBlockJob *backup_job = container_of(job, BackupBlockJob, common);

    int64_t len;



    assert(job->driver->job_type == BLOCK_JOB_TYPE_BACKUP);



    if (backup_job->sync_mode != MIRROR_SYNC_MODE_NONE) {

        error_setg(errp, "The backup job only supports block checkpoint in"

                   " sync=none mode");

        return;

    }



    len = DIV_ROUND_UP(backup_job->common.len, backup_job->cluster_size);

    bitmap_zero(backup_job->done_bitmap, len);

}

void FUNC_0(BlockJob *VAR_0, Error **VAR_1)

{

    BackupBlockJob *backup_job = container_of(VAR_0, BackupBlockJob, common);

    int64_t len;



    assert(VAR_0->driver->job_type == BLOCK_JOB_TYPE_BACKUP);



    if (backup_job->sync_mode != MIRROR_SYNC_MODE_NONE) {

        error_setg(VAR_1, "The backup VAR_0 only supports block checkpoint in"

                   " sync=none mode");

        return;

    }



    len = DIV_ROUND_UP(backup_job->common.len, backup_job->cluster_size);

    bitmap_zero(backup_job->done_bitmap, len);

}

void FUNC_0(BlockJob *VAR_0, Error **VAR_1)
{ BackupBlockJob *backup_job = container_of(VAR_0, BackupBlockJob, common); int64_t len; assert(VAR_0->driver->job_type == BLOCK_JOB_TYPE_BACKUP); if (backup_job->sync_mode != MIRROR_SYNC_MODE_NONE) { error_setg(VAR_1, "The backup VAR_0 only supports block checkpoint in"
" sync=none mode"); return; } len = DIV_ROUND_UP(backup_job->common.len, backup_job->cluster_size); bitmap_zero(backup_job->done_bitmap, len); }