static void do_change_block(const char *device, const char *filename)

{

    BlockDriverState *bs;



    bs = bdrv_find(device);

    if (!bs) {

        term_printf("device not found\n");

        return;

    }

    if (eject_device(bs, 0) < 0)

        return;

    bdrv_open(bs, filename, 0);

    qemu_key_check(bs, filename);

}

static void do_change_block(const char *device, const char *filename)

{

    BlockDriverState *bs;



    bs = bdrv_find(device);

    if (!bs) {

        term_printf("device not found\n");

        return;

    }

    if (eject_device(bs, 0) < 0)

        return;

    bdrv_open(bs, filename, 0);

    qemu_key_check(bs, filename);

}

static void do_change_block(const char *device, const char *filename)     bdrv_open(bs, filename, 0);
static void FUNC_0(const char *VAR_0, const char *VAR_1)

{

    BlockDriverState *bs;



    bs = bdrv_find(VAR_0);

    if (!bs) {

        term_printf("VAR_0 not found\n");

        return;

    }

    if (eject_device(bs, 0) < 0)

        return;

    bdrv_open(bs, VAR_1, 0);

    qemu_key_check(bs, VAR_1);

}

static void FUNC_0(const char *VAR_0, const char *VAR_1)
{ BlockDriverState *bs; bs = bdrv_find(VAR_0); if (!bs) { term_printf("VAR_0 not found\n"); return; } if (eject_device(bs, 0) < 0)
return; bdrv_open(bs, VAR_1, 0); qemu_key_check(bs, VAR_1); }