static int print_block_option_help(const char *filename, const char *fmt)

{

    BlockDriver *drv, *proto_drv;

    QEMUOptionParameter *create_options = NULL;



    /* Find driver and parse its options */

    drv = bdrv_find_format(fmt);

    if (!drv) {

        error_report("Unknown file format '%s'", fmt);

        return 1;

    }



    create_options = append_option_parameters(create_options,

                                              drv->create_options);



    if (filename) {

        proto_drv = bdrv_find_protocol(filename, true);

        if (!proto_drv) {

            error_report("Unknown protocol '%s'", filename);


            return 1;

        }

        create_options = append_option_parameters(create_options,

                                                  proto_drv->create_options);

    }



    print_option_help(create_options);


    return 0;

}
static int print_block_option_help(const char *filename, const char *fmt)

{

    BlockDriver *drv, *proto_drv;

    QEMUOptionParameter *create_options = NULL;



    

    drv = bdrv_find_format(fmt);

    if (!drv) {

        error_report("Unknown file format '%s'", fmt);

        return 1;

    }



    create_options = append_option_parameters(create_options,

                                              drv->create_options);



    if (filename) {

        proto_drv = bdrv_find_protocol(filename, true);

        if (!proto_drv) {

            error_report("Unknown protocol '%s'", filename);


            return 1;

        }

        create_options = append_option_parameters(create_options,

                                                  proto_drv->create_options);

    }



    print_option_help(create_options);


    return 0;

}
static int FUNC_0(const char *VAR_0, const char *VAR_1)

{

    BlockDriver *drv, *proto_drv;

    QEMUOptionParameter *create_options = NULL;



    

    drv = bdrv_find_format(VAR_1);

    if (!drv) {

        error_report("Unknown file format '%s'", VAR_1);

        return 1;

    }



    create_options = append_option_parameters(create_options,

                                              drv->create_options);



    if (VAR_0) {

        proto_drv = bdrv_find_protocol(VAR_0, true);

        if (!proto_drv) {

            error_report("Unknown protocol '%s'", VAR_0);


            return 1;

        }

        create_options = append_option_parameters(create_options,

                                                  proto_drv->create_options);

    }



    print_option_help(create_options);


    return 0;

}
static int FUNC_0(const char *VAR_0, const char *VAR_1)
{ BlockDriver *drv, *proto_drv; QEMUOptionParameter *create_options = NULL; drv = bdrv_find_format(VAR_1); if (!drv) { error_report("Unknown file format '%s'", VAR_1); return 1; } create_options = append_option_parameters(create_options,
drv->create_options); if (VAR_0) { proto_drv = bdrv_find_protocol(VAR_0, true); if (!proto_drv) { error_report("Unknown protocol '%s'", VAR_0); return 1; } create_options = append_option_parameters(create_options,
proto_drv->create_options); } print_option_help(create_options); return 0; }