def METHOD_NAME(dev):
    if params.get("set_max_segment"):
        cmd = params['cmd_get_max_segment'].format(
            dev.replace("/dev/", ""))
        out = process.getoutput(cmd, shell=True)
        logger.info("run check segment %s,%s", cmd, out)
        params["bus_extra_params_stg1"] = "max_sectors=%s" % out
        return out