summaryrefslogtreecommitdiff
path: root/sbin/disklabel/extern.h
AgeCommit message (Collapse)Author
2011-04-16Add '-F'. Same as '-f' but uses DUIDs when writing the mount pointKenneth R Westerback
information to the specified file. After every label write, read the label to get current UID info. Some internal code cleanup with no intended functional change. ok deraadt@
2010-11-24When dealing with disklabel UIDs (DUIDs) be specific and consistent withJoel Sing
naming. ok krw@
2010-09-23Print disklabel UIDs using printf/fprintf instead of using the hand rolledJoel Sing
uid_print() function. ok krw@
2010-08-12fix a few warnings. ok jsingTed Unangst
2009-08-07move editor_allocspace & mpsave out to extern.h so that disklabel.cMartynas Venckus
gets the declarations it uses. ok krw@
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
2009-06-02Add '-h' flag, and '*' as a unit specifier for 'p' Editor command.Kenneth R Westerback
Both cause partition sizes to be displayed using a human readable format with the units automatically chosen by looking at the smallest partition in the disk label. Remove forceable humanization in 'A' code and use '-h' in install scripts. Prodded & ok deraadt@, verbiage tweaks from jmc@
2009-04-18Alexander Hall points out that disklabel -AE <disk> followed by quittingStuart Henderson
without making manual changes does not ask whether you'd like to save the new automatic disklabel. Change to follow the behaviour of -d and ask every time. ok krw@.
2009-04-12When auto-allocating, check the size of the disk and displayKenneth R Westerback
offset/size information in MB if the disk is <10G, and in GB otherwise. '-p' will override this default.
2009-04-11readlabel() either errored out or returned a pointer to the globalKenneth R Westerback
'lab'. So there is no need for the return value. Just use &lab wherever it was used. No functional change. Slightly different version read ok to blambert@
2009-04-10Re-work '-A' so that it sets a flag that -E and -w use, and which willKenneth R Westerback
just display the auto-allocation plan otherwise. Don't overwrite any spoofed partitions, insert auto allocated partitions where we can. This is much more install script and weird architecture friendly. I'm talking about you, macppc. Many suggestions and code from otto@, feedback from many, cattle prod applied by deraadt@. ok deraadt@ "if it works for >8GB ... put it in" miod@ "to be clear, ok" todd@
2009-03-29otto points out that the -v printing changes are incompatible with theTheo de Raadt
expectation that -R will read the output of disklabel. I suspect we will find another way to do this; ok otto
2009-03-28Move some output under the control of the '-v' flag. In particular onlyKenneth R Westerback
display the partition info by default as is done in the E(ditor). The physical info is now only displayed if '-v' is specified. ok deraadt@
2009-03-22Add 'A' command to Editor mode, and -A flag to automatically execute itKenneth R Westerback
on disks without an existing label. The 'A' command allocates all space on the disk into a reasonable partition scheme for a root disk. Feedback from several, time to work on it in-tree. Prodded (repeatedly) by and ok deraadt@
2009-01-11On *ppc disks shared with MacOS, walk the Apple partition map to find outMiod Vallat
the bounds of the OpenBSD area. Should prevent users from shooting themselves in the feet. ok krw@
2008-06-25In interactive mode, always suggest offsets and sizes inside theOtto Moerbeek
OpenBSD area and change the 'p' command to only print the boundaries and size of the OpenBSD area and the free space within that area. Introduce a 'l' command to print the header only. With krw@; ok krw@ deraadt@; jmc@ for the man page bits
2007-06-08Make disklabel(8) aware of the new fields, allowing for larger thanOtto Moerbeek
2T disks, partitions and offsets. ok deraadt@
2007-03-02If a default label has been created with the -d command line option orKenneth R Westerback
the 'D' editor command and has not been written to disk when the user issues the 'q' editor command, ask if the label should be written to disk before exiting.
2005-01-07Print disk size and free space in requested unit. Some refactoring toOtto Moerbeek
avoid code duplication as well. ok marco@ deraadt@
2004-10-01add some missing $, ok djm@ 'That looks fine to me' millert@Jonathan Gray
2004-09-28Tidy disklabel output for todays big disks. Based on a diff from fOtto Moerbeek
at obiit dot org in PR 3847. ok tedu@ deraadt@ millert@
2003-07-02missing protosTheo de Raadt