int reset_fota_cookie()
{
    if (target_is_emmc())
        return reset_fota_cookie_mmc();
    else
        return reset_fota_cookie_mtd();
}
int reset_fota_cookie()
{
    Volume* v = volume_for_path("/FOTA");
    if (v == NULL) {
      LOGE("Cannot load volume /FOTA!\n");
      return -1;
    }
    if (strcmp(v->fs_type, "mtd") == 0) {
        return reset_fota_cookie_mtd();
    } else if (strcmp(v->fs_type, "emmc") == 0) {
        return reset_fota_cookie_mmc();
    }
    LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
    return -1;
}