mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/6] partitions: GPT: refresh partition tables when necessary
@ 2025-12-03 15:19 Sascha Hauer
  2025-12-03 15:19 ` [PATCH 1/6] partitions: gpt: pass epd context pointer to find_valid_gpt() Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Sascha Hauer @ 2025-12-03 15:19 UTC (permalink / raw)
  To: BAREBOX

This is a continuation of the patch previously sent separately:

https://lore.kernel.org/all/20251128111929.2463263-1-s.hauer@pengutronix.de/

Ahmad's comment to this was that we should write the inactive GPT first
to make sure there's always a valid GPT on the device. This series
implements just that. I stumbled upon a bug when we restore the primary
GPT from the alternate GPT, this is fixed in this series.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (6):
      partitions: gpt: pass epd context pointer to find_valid_gpt()
      partitions: gpt: only write actual ptes size to device
      partitions: gpt: factor out a function to write primary/alternate GPT
      partitions: gpt: write inactive GPT first
      partitions: gpt: fix GPT restauration from alternate GPT
      partitions: gpt: refresh partition tables when necessary

 common/partitions/Kconfig |  14 +++
 common/partitions/efi.c   | 293 +++++++++++++++++++++++++++++++++++-----------
 2 files changed, 236 insertions(+), 71 deletions(-)
---
base-commit: 500df27eb054f86ce232c5bb30c3a7ea8f771e61
change-id: 20251203-efi-partition-refresh-a18d630961bc

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-12-15 14:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03 15:19 [PATCH 0/6] partitions: GPT: refresh partition tables when necessary Sascha Hauer
2025-12-03 15:19 ` [PATCH 1/6] partitions: gpt: pass epd context pointer to find_valid_gpt() Sascha Hauer
2025-12-15 12:28   ` Ahmad Fatoum
2025-12-03 15:19 ` [PATCH 2/6] partitions: gpt: only write actual ptes size to device Sascha Hauer
2025-12-15 12:29   ` Ahmad Fatoum
2025-12-03 15:19 ` [PATCH 3/6] partitions: gpt: factor out a function to write primary/alternate GPT Sascha Hauer
2025-12-15 12:34   ` Ahmad Fatoum
2025-12-03 15:19 ` [PATCH 4/6] partitions: gpt: write inactive GPT first Sascha Hauer
2025-12-15 12:38   ` Ahmad Fatoum
2025-12-03 15:19 ` [PATCH 5/6] partitions: gpt: fix GPT restauration from alternate GPT Sascha Hauer
2025-12-15 12:41   ` Ahmad Fatoum
2025-12-03 15:19 ` [PATCH 6/6] partitions: gpt: refresh partition tables when necessary Sascha Hauer
2025-12-15 12:47   ` Ahmad Fatoum
2025-12-15 14:13     ` Sascha Hauer
2025-12-15 14:15       ` Ahmad Fatoum
2025-12-15 14:09 ` [PATCH 0/6] partitions: GPT: " Sascha Hauer

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