void blkconf_serial(BlockConf *conf, char **serial)

{

    DriveInfo *dinfo;



    if (!*serial) {

        /* try to fall back to value set with legacy -drive serial=... */

        dinfo = drive_get_by_blockdev(conf->bs);

        if (*dinfo->serial) {

            *serial = g_strdup(dinfo->serial);

        }

    }

}

void blkconf_serial(BlockConf *conf, char **serial)

{

    DriveInfo *dinfo;



    if (!*serial) {

        

        dinfo = drive_get_by_blockdev(conf->bs);

        if (*dinfo->serial) {

            *serial = g_strdup(dinfo->serial);

        }

    }

}

void FUNC_0(BlockConf *VAR_0, char **VAR_1)

{

    DriveInfo *dinfo;



    if (!*VAR_1) {

        

        dinfo = drive_get_by_blockdev(VAR_0->bs);

        if (*dinfo->VAR_1) {

            *VAR_1 = g_strdup(dinfo->VAR_1);

        }

    }

}

void FUNC_0(BlockConf *VAR_0, char **VAR_1)
{ DriveInfo *dinfo; if (!*VAR_1) { dinfo = drive_get_by_blockdev(VAR_0->bs); if (*dinfo->VAR_1) { *VAR_1 = g_strdup(dinfo->VAR_1); } } }