https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235206

--- Comment #1 from Emrion <[email protected]> ---
Created attachment 201423
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201423&action=edit
Patch to add an automatic GPT recovery feature to gptzfsboot

I eventually made a patch for gptzfsboot. It modifies
/usr/src/stand/i386/zfsboot/zfsboot.c and add the automatic recovery of a GPT
scheme feature but not only. It also verifies the crc of the GPT header and the
crc of the partition table.

I have picked the code in /usr/src/stand/libsa/gpt.c, including mine from the
previous patch, and adapted it to the zfsboot.c environment.

It's a pity that the gpt.c code is used in gptboot but not in gptzfsboot. I
think this would require to rewrite a good part of gpt.c and gptboot.c (not
forget zfsboot.c itself). Besides that, if I well understood, the code of
zfsboot.c is also used for booting a MBR scheme. So there is a mix of MBR and
GPT functions & instructions in the same file. Could the design be improved?

Well, this is just my little understanding as I'm far to know enough in this
matter.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to