summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.h
AgeCommit message (Expand)Author
2022-07-26Allow editing of an MBR of all zeros.Kenneth R Westerback
2022-07-25Only MBR and GPT structures can be edited by fdisk.Kenneth R Westerback
2021-10-25Nuke a bunch of pointless #ifndef _<.h file>/#endif guards.Kenneth R Westerback
2021-08-06Cleanup, clarify and generally polish the MBR/GPT initializationKenneth R Westerback
2021-07-21Use a dedicated struct mbr to hold the GPT protective MBR,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-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-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-11Add 'mbr_' prefix to struct mbr field names.Kenneth R Westerback
2021-07-11Add tabs to make struct definitions and function prototypes easierKenneth R Westerback
2021-06-16Ensure that the '-i' command line option and the 'reinit [mbr]'Kenneth R Westerback
2021-05-20Nuke duplicate declaration of MBR_init_GPT().Kenneth R Westerback
2021-05-07Replace random mix of u_int* and uint* types with consistent uint* types.Kenneth R Westerback
2015-11-18Parse the original on-disk MBR into a local variable. Use theKenneth R Westerback
2015-11-13Move from opening/closing disk for every i/o to opening the disk onceKenneth R Westerback
2015-10-26Add GPT editing. Based on GSOC 2014 work by Markus Muller.Kenneth R Westerback
2015-10-05Enhance '-g' to create a default GPT label in addition to the protectiveKenneth R Westerback
2015-08-19Missing prototypes. Noted by deraadt@Kenneth R Westerback
2015-03-30Nuke declaration of unused and non-existant function MBR_print_disk().Kenneth R Westerback
2015-03-29Rename MBR_readsector() and MBR_writesector() to just readsector()Kenneth R Westerback
2015-03-18Stop passing around little used 'struct mbr tt' parameter. JustKenneth R Westerback
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().Kenneth R Westerback
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.Kenneth R Westerback
2015-02-10If 'write' is issued after a 'reinit' command, and the MBR to beKenneth R Westerback
2014-03-23Change struct mbr signature field type from 'unsigned short' toKenneth R Westerback
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundKenneth R Westerback
2014-03-08It's silly to check at compile time for DEV_BSIZE == 512.Kenneth R Westerback
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
2013-03-21I don't feel great about adding an include for <sys/param.h>, but I feelTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-18Allow size values to be displayed in the user's choice of units.Kjell Wooding
2002-01-04Remove references to the NT serial number. Now the first 0x1beKjell Wooding
2001-12-15Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.Kjell Wooding
2001-08-12#(endif|else) foo is incorrect, make it #endif /* foo */Heikki Korpela
2001-01-28Quick -Wall fixes, ok niklas@, aaron@Tobias Weingartner
1998-09-14Since on the powerpc, the system does not supply the user withDale S. Rahn
1997-10-21make fdisk grok extended partitions again. we have to keep track of theNiels Provos
1997-09-29ID in the first line w/ tabsMichael Shalayeff
1997-09-29New fdisk code with interactive (command line type)Tobias Weingartner