static int raw_inactivate(BlockDriverState *bs)

{

    int ret;

    uint64_t perm = 0;

    uint64_t shared = BLK_PERM_ALL;



    ret = raw_handle_perm_lock(bs, RAW_PL_PREPARE, perm, shared, NULL);

    if (ret) {

        return ret;

    }

    raw_handle_perm_lock(bs, RAW_PL_COMMIT, perm, shared, NULL);

    return 0;

}

static int raw_inactivate(BlockDriverState *bs)

{

    int ret;

    uint64_t perm = 0;

    uint64_t shared = BLK_PERM_ALL;



    ret = raw_handle_perm_lock(bs, RAW_PL_PREPARE, perm, shared, NULL);

    if (ret) {

        return ret;

    }

    raw_handle_perm_lock(bs, RAW_PL_COMMIT, perm, shared, NULL);

    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0)

{

    int VAR_1;

    uint64_t perm = 0;

    uint64_t shared = BLK_PERM_ALL;



    VAR_1 = raw_handle_perm_lock(VAR_0, RAW_PL_PREPARE, perm, shared, NULL);

    if (VAR_1) {

        return VAR_1;

    }

    raw_handle_perm_lock(VAR_0, RAW_PL_COMMIT, perm, shared, NULL);

    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0)
{ int VAR_1; uint64_t perm = 0; uint64_t shared = BLK_PERM_ALL; VAR_1 = raw_handle_perm_lock(VAR_0, RAW_PL_PREPARE, perm, shared, NULL); if (VAR_1) { return VAR_1; } raw_handle_perm_lock(VAR_0, RAW_PL_COMMIT, perm, shared, NULL); return 0; }