CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2021/07/15 15:58:02
Modified files: sbin/fdisk : cmd.c disk.c disk.h fdisk.c gpt.c gpt.h mbr.c misc.c part.c Log message: No need for separate b_sectors, b_offset and b_type variables. We have struct prt to hold this info in one place. Construct a struct prt to hold the boot partition information and stash it in the struct disk for both MBR and GPT to access as needed. Move the blocks to sectors conversions into DISK_open() with all of its geometry friends. No intentional functional change.