summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk/mbr.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Nuke now unused 'sz' variable.krw2016-09-011-5/+1
* EFI firmware has been encountered that is (from our point of view) confusedkrw2016-09-011-6/+9
* Revert r1.59's over-enthusiatic MBR zero'ing in MBR_init(). It waskrw2015-12-301-2/+10
* Use 'standard' gpt_chk_mbr() to check for protective MBR.krw2015-12-271-19/+47
* Reduce overburden of unnecessary #include's. Note that param.h iskrw2015-11-191-8/+3
* Change #include <memory.h> to #include <string.h>krw2015-11-181-2/+2
* Parse the original on-disk MBR into a local variable. Use thekrw2015-11-181-23/+1
* Move from opening/closing disk for every i/o to opening the disk oncekrw2015-11-131-16/+14
* 'reinit mbr' must zero existing MBR and GPT partition informationkrw2015-11-121-7/+6
* Refresh the in-kernel copy of the disklabel from the disk *after* writingkrw2015-11-121-1/+3
* Use UINT32_MAX for the size of the EFI System partition on disks larger thankrw2015-11-101-2/+9
* Add GPT editing. Based on GSOC 2014 work by Markus Muller.krw2015-10-261-1/+31
* Enhance '-g' to create a default GPT label in addition to the protectivekrw2015-10-051-7/+1
* Add a -b option, to be used together with -i, that tells fdisk to add akettenis2015-09-041-1/+15
* Nuke some trailing whitespace that keeps coming back.krw2015-08-271-2/+2
* Don't printf("offset: ...) before every call to MBR_print(). Do itkrw2015-04-021-1/+2
* Even better -- readsector() and writesector() become DISK_readsector() andkrw2015-03-301-8/+8
* Rename MBR_readsector() and MBR_writesector() to just readsector()krw2015-03-291-63/+8
* A couple of letoh64() to make GPTSIGNATURE test work better onkrw2015-03-291-3/+3
* Stop passing around little used 'struct mbr tt' parameter. Justkrw2015-03-181-1/+3
* Stop passing around a pointer to the stack variable 'disk' in main().krw2015-03-161-21/+20
* Whitespace & KNF tweaks. Change functions whose return values arekrw2015-03-141-4/+4
* Zap unused variable.krw2015-03-141-2/+1
* Switch all the license blocks to the standard OpenBSD/ISC license.krw2015-03-141-20/+11
* If 'write' is issued after a 'reinit' command, and the MBR to bekrw2015-02-101-47/+105
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+2
* Add support for creating a protective MBR for GPT.jsing2015-01-031-2/+23
* Fix 'fdisk -u', a.k.a. MBR_pcopy(), on sparc64 and possibly others.krw2014-05-211-9/+10
* Nuke [get|put][short|long] and just use letoh[16|32] andkrw2014-03-311-7/+15
* Nuke pointless blank lines, defines, comments and casts. Eliminatekrw2014-03-171-5/+3
* Un-revert, being careful to not break snap building. Add paranoia checkkrw2014-03-171-6/+6
* Revert last -- broke building snaps.krw2014-03-141-6/+6
* Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tkrw2014-03-131-6/+6
* Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundkrw2014-03-091-33/+30
* Relieve the code of an overburden of unnecessary typedefkrw2014-03-071-7/+8
* Always set the signature to DOSMBR_SIGNATURE when writing a MBR tokrw2014-02-051-2/+2
* Keep disk sector calcuations in u_int64_t as long as possible, andkrw2013-10-081-4/+3
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-2/+2
* more substantial include cleanupderaadt2013-03-211-8/+7
* Don't 'reserve' a head/track if there is only only 1 head and 1krw2012-04-041-4/+10
* MBR_read() can be reading from a file as well as a raw partition.krw2011-06-201-2/+2
* Honour MBR_read() results and don't pretend we can parse blocks wekrw2011-02-211-3/+5
* Make 'fdisk -i' start the OpenBSD partition on a power of 2 512-bytekrw2010-06-301-1/+14
* Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. Especiallykrw2009-02-081-3/+2
* Read/write device sectors rather than assuming sector size ==krw2006-12-101-11/+50
* Change MBR_read() and MBR_write() to return -1 on error and setray2006-05-291-9/+20
* some delinting; ok ottoderaadt2004-09-181-8/+7
* Remove unused argument 'int pn' to PRT_fix_CHS(). The 'int pn'tom2004-07-131-4/+4
* spacesderaadt2003-07-291-2/+2
* ansificationderaadt2003-06-111-27/+8