On Wed, 03 Dec 2025 16:19:04 +0100, Sascha Hauer wrote:
> This is a continuation of the patch previously sent separately:
>
> https://lore.kernel.org/all/[email protected]/
>
> 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.
>
> [...]
Applied, thanks!
[1/6] partitions: gpt: pass epd context pointer to find_valid_gpt()
https://git.pengutronix.de/cgit/barebox/commit/?id=21f0f27d4ee8 (link may
not be stable)
[2/6] partitions: gpt: only write actual ptes size to device
https://git.pengutronix.de/cgit/barebox/commit/?id=a8ce79acad3f (link may
not be stable)
[3/6] partitions: gpt: factor out a function to write primary/alternate GPT
https://git.pengutronix.de/cgit/barebox/commit/?id=39d9c24162e0 (link may
not be stable)
[4/6] partitions: gpt: write inactive GPT first
https://git.pengutronix.de/cgit/barebox/commit/?id=825fa5c84455 (link may
not be stable)
[5/6] partitions: gpt: fix GPT restauration from alternate GPT
https://git.pengutronix.de/cgit/barebox/commit/?id=58ddade72049 (link may
not be stable)
[6/6] partitions: gpt: refresh partition tables when necessary
https://git.pengutronix.de/cgit/barebox/commit/?id=131ef8e9ef99 (link may
not be stable)
Best regards,
--
Sascha Hauer <[email protected]>