summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.c
AgeCommit message (Expand)Author
2022-04-25Push DISK_[read|write]sectors() down to disk.c local functionsKenneth R Westerback
2022-02-04Wrap some annoyingly long lines.Kenneth R Westerback
2022-02-04%llu should be enough for anybody, no need to use %lld/(long long) forKenneth R Westerback
2022-02-04Remove CHS information from internal representation of MBR partitions. GenerateKenneth R Westerback
2022-01-21Split PRT_print() into PRT_print_parthdr() and PRT_print_part()Kenneth R Westerback
2021-12-11Start the default OpenBSD partition either immediately followingKenneth R Westerback
2021-12-07Don't truncate the default OpenBSD partition at the end of theKenneth R Westerback
2021-12-01Remove the MBR_init() "#ifdef defined(__macppc__) ||Kenneth R Westerback
2021-11-25Honour /usr/mdec/mbr or -f partition 0 information even outsideKenneth R Westerback
2021-11-20Gather the setup of the initial OpenBSD MBR partition into oneKenneth R Westerback
2021-11-20No need for intermediate 'adj' variable. Add 'disksz'Kenneth R Westerback
2021-11-20Sectors-per-cylinder (spc) is a constant value, so make it constKenneth R Westerback
2021-11-14Calculate initial OpenBSD partition start/size using LBA valuesKenneth R Westerback
2021-11-10Set correct prt_flag to 0.Kenneth R Westerback
2021-11-09Try this again, with (__powerpc__ || __mips__) chunk actuallyKenneth R Westerback
2021-11-09no, that breaks architecturesTheo de Raadt
2021-11-08Use a couple of local 'struct prt' variables to make MBR_init()Kenneth R Westerback
2021-10-29Tweak code to make it clear that MBR_init() uses just the boot code andKenneth R Westerback
2021-09-26Revert '-b' change. Forgot required bsd.rd tweak.Kenneth R Westerback
2021-09-26MBR partitions created with '-b' should be marked DOSACTIVE.Kenneth R Westerback
2021-09-10Stop using NULL as a synonym for "s" (SECTORS). Just use "s".Kenneth R Westerback
2021-08-07Nuke unneeded #include's, one param.h -> types.h.Kenneth R Westerback
2021-08-07Comment typo 'mmbr' -> 'mbr'.Kenneth R Westerback
2021-08-06Cleanup, clarify and generally polish the MBR/GPT initializationKenneth R Westerback
2021-07-26Report write() and ioctl() errors encountered when writing GPT or MBR to disk.Kenneth R Westerback
2021-07-21Use a dedicated struct mbr to hold the GPT protective MBR,Kenneth R Westerback
2021-07-19Tweak one comment and nuke a bunch of pointless ones.Kenneth R Westerback
2021-07-19MBR_protective_mbr() can take a const struct mbr *.Kenneth R Westerback
2021-07-19An MBR knows (mbr_lba_self) where it is supposed to go, noKenneth R Westerback
2021-07-19Revert incorrect tweaks to disk geometry calculations andKenneth R Westerback
2021-07-18Don't save the prt_scyl/prt_ecyl values, change them, use themKenneth R Westerback
2021-07-18Put MBR_parse() invocation inside MBR_read() instead of alwaysKenneth R Westerback
2021-07-17Nuke a bunch of Capt. Obvious or misleading comments.Kenneth R Westerback
2021-07-15No need for separate b_sectors, b_offset and b_type variables. We have structKenneth R Westerback
2021-07-13Disk sector addresses are normally stored/provided in uint64_tKenneth R Westerback
2021-07-12Toss 'const' in anywhere the compiler doesn't complain about, thus identifyingKenneth R Westerback
2021-07-12Add 'dk_' prefix to struct disk field names.Kenneth R Westerback
2021-07-11Add 'prt_' prefix to struct prt field names.Kenneth R Westerback
2021-07-11Add 'mbr_' prefix to struct mbr field names.Kenneth R Westerback
2021-07-11Add tabs to make variable declarations easierKenneth R Westerback
2021-07-11'return' is not a function call.Kenneth R Westerback
2021-07-04Fix legacy booting.Kenneth R Westerback
2021-06-20Make -b available to architectures other than amd64 and i386.Kenneth R Westerback
2021-06-16Ensure that the '-i' command line option and the 'reinit [mbr]'Kenneth R Westerback
2021-06-10Shift zeroing of gpt header and partition table to top ofKenneth R Westerback
2021-06-10'i' is a silly name for a daddr_t variable, and could be neededKenneth R Westerback
2021-06-02Use the same logic in all copies of gpt_chk_mbr(), relaxing theKenneth R Westerback
2021-05-27Relax criteria for recognizing GPT formatted media by allowing theKenneth R Westerback
2021-05-21The protective MBR for GPT partitioning must be atKenneth R Westerback
2021-05-14Whitespace tweaks and a couple of stray u_int* in gpt_chk_mbr().Kenneth R Westerback