From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95030EB64DC for ; Mon, 3 Jul 2023 13:40:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA95B85EDD; Mon, 3 Jul 2023 15:40:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kSgxzSy/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D0DEE86619; Mon, 3 Jul 2023 15:40:07 +0200 (CEST) Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 08C1E84768 for ; Mon, 3 Jul 2023 15:40:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jpewhacker@gmail.com Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6b2f0a140b7so3768459a34.3 for ; Mon, 03 Jul 2023 06:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688391603; x=1690983603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6dJZt0mz+LbFyAZaSy5YpdMqgjUMAlOCk32zjJiyuUE=; b=kSgxzSy/z4m03Yr7TkTwBwWxCKzHhePMBtlf5qq0CsvzZHkBzQ6+RhDrfpoZ4GlHl0 +x7bM6DyFUiCiHNltkbBcvvjvDvOS+JaqDiQlSrN3/I+ielY5m9ydixLWWnbiER4sgL5 IukIoOmMq6oic3r3xgCEPaUHv0mqt2FvRRqTCd9Za8OLFjSh2dqdrsbsLdigJznJNrqM LaeW2XvfIldNKEhnzGEk+i2zqNZM65JfB/Z/iu7EabIN3ZTXJ1RMKE0LwnG9IEY3LQmb fMSV04RTzuKI73NOYm0HQiorlibqHhSsCiC9VvUESyN0UBhTYEHkSZ5jPECjplmjbej6 GX1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688391603; x=1690983603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6dJZt0mz+LbFyAZaSy5YpdMqgjUMAlOCk32zjJiyuUE=; b=bmviOwB42rmuYSdVgjo+f1cA+TDmN8zTAsvNn36C1f5ORvWmTe/5CBGd8RBYdsOx6q ncueIA0FKGX9q01+KTUJ1WevhcCLo/yRYLAL2K4yv9my2ye2AQT4uhQVUgcAlK+gne7v lyfH7zurbGS7HfEbIijTmorL9AMv34O8TUFTCoJgxaVR3n9utyrfhk9KkLduoxlNAMLk um1b+2epFYNEXHeJq0/vyPVsuHtM2uw2d26ScJ3JSo96cBiF94xkLCw1wXtlEMIolRTU WTaZYlMSnu+l07P6MwqsBibw7S5H172qe3BMK11ftc+XLjyLtXk3Ix4h03LFpK3Znwzh KvRw== X-Gm-Message-State: AC+VfDz/HDPzIO/3A+y99KU4kD6Y04DFUneDkBcj2wsO3WYEQC00YWP4 yEhRjFnM0nG2QuQ170lc+OJb89NNl3A= X-Google-Smtp-Source: ACHHUZ5ptyz30EegfxLzE8cFcRh9D3OvY58bZee+GgFjN1K04l1LK30ic2O1dI4eSJbjDRr3OV5jIg== X-Received: by 2002:a9d:7cc8:0:b0:6b8:7a64:cedc with SMTP id r8-20020a9d7cc8000000b006b87a64cedcmr9810451otn.14.1688391603067; Mon, 03 Jul 2023 06:40:03 -0700 (PDT) Received: from localhost.localdomain ([204.77.163.107]) by smtp.gmail.com with ESMTPSA id j2-20020a9d7382000000b006b8cf55a997sm535720otk.28.2023.07.03.06.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:40:02 -0700 (PDT) From: Joshua Watt X-Google-Original-From: Joshua Watt To: u-boot@lists.denx.de Cc: Joshua Watt Subject: [PATCH v2 0/5] Fix 'mbr' command with hybrid MBR/GPT Date: Mon, 3 Jul 2023 08:39:51 -0500 Message-Id: <20230703133959.3880305-1-JPEWhacker@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230623200031.2689749-1-JPEWhacker@gmail.com> References: <20230623200031.2689749-1-JPEWhacker@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean When dealing with a hybrid MBR/GPT partition table, the 'mbr' command would misbehave because it was reading the GPT partitions instead of reading from the MBR when verifying. Fix this by forcing 'mbr verify' to read MBR partitions. V2: Fixed up dm_test_part tests and added tests for new API Joshua Watt (5): dm: test: Fix partition test to use mmc2 dm: test: Improve partition test error output disk: part: Add API to get partitions with specific driver dm: test: Add test for part_get_info_by_type cmd: mbr: Force DOS driver to be used for verify cmd/mbr.c | 2 +- configs/sandbox_defconfig | 2 + disk/part.c | 38 ++++++++++--- include/part.h | 19 ++++++- test/dm/part.c | 115 +++++++++++++++++++++++++++++++++----- 5 files changed, 154 insertions(+), 22 deletions(-) -- 2.33.0