public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] disk: part_dos: update partition table entries after write
@ 2021-01-27 20:19 Gary Bisson
  2021-01-27 20:56 ` Heinrich Schuchardt
  2021-01-28  8:10 ` [PATCH v2] " Gary Bisson
  0 siblings, 2 replies; 8+ messages in thread
From: Gary Bisson @ 2021-01-27 20:19 UTC (permalink / raw)
  To: u-boot

Fixes issues when switching from GPT to MBR partition tables.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
Hi,

Sending this patch as a follow-up to the other one [1] doing the same
thing for GPT write.

Let me know if you have any questions.

Regards,
Gary

[1] https://lists.denx.de/pipermail/u-boot/2021-January/438764.html
---
 disk/part_dos.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/disk/part_dos.c b/disk/part_dos.c
index f431925745..470886f4bb 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -499,6 +499,9 @@ int write_mbr_sector(struct blk_desc *dev_desc, void *buf)
 		return 1;
 	}
 
+	/* Update the partition table entries*/
+	part_init(dev_desc);
+
 	return 0;
 }
 
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-22 14:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-27 20:19 [PATCH] disk: part_dos: update partition table entries after write Gary Bisson
2021-01-27 20:56 ` Heinrich Schuchardt
2021-01-28  8:01   ` Gary Bisson
2021-01-28  8:10 ` [PATCH v2] " Gary Bisson
2021-01-28  8:18   ` Marek Szyprowski
2021-02-02 14:31   ` Tom Rini
2021-06-22  2:48     ` Da Xue
2021-06-22 14:10       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox