summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Expand)Author
2018-07-07Add recommended error checks around the use of strtod() inKenneth R Westerback
2018-07-03Reduce display_edit() parameter list by one. Just callKenneth R Westerback
2018-07-03Nuke some leading spaces and mis-indentations that crept in over theKenneth R Westerback
2018-07-03No need for print_unit to be a global.Kenneth R Westerback
2018-07-01Rework partition offset/size rounding logic, removing it fromKenneth R Westerback
2018-04-27Add getnumber() to extract simple deciaml values from theKenneth R Westerback
2018-04-27Create and use a couple of #defines for the magic returnKenneth R Westerback
2018-04-26No need for two copies of tricky user input gathering code. Just useKenneth R Westerback
2018-04-26Add some range checks to make sure we don't attempt to store valuesKenneth R Westerback
2018-04-26Fix previous. Adding "offset" to "maxval" was required.YASUOKA Masahiko
2018-04-26Consolidate duplicate error messages, 'return' is not a function soKenneth R Westerback
2018-04-06Round user input to cylinder boundaries more betterer.Kenneth R Westerback
2018-03-08Check required partition size against the size of the largest freeKenneth R Westerback
2018-03-08Calculate chunk size after adjusting both the chunk offset and chunkKenneth R Westerback
2018-03-08Instead of a SUN_CYLCHECK block in both parts of an if/else, with aKenneth R Westerback
2018-03-08Bail out of a strategy early if the sum of the minsz values exceedsKenneth R Westerback
2018-03-08Bail out of a strategy early if it requires more partitions than areKenneth R Westerback
2018-03-08Simplify the strategy looping.Kenneth R Westerback
2018-03-04Add if (D_VENDOR) check to last SUN_CYLCHECK block lacking it.Kenneth R Westerback
2018-03-02Tweak a couple of long lines.Kenneth R Westerback
2018-03-02Always call get_cpg() after calling get_bsize(). InitializeKenneth R Westerback
2018-03-01Check for a negative value and overflow in getuint64() when performingTodd C. Miller
2018-03-01Don't overflow or underflow value when [+-] operatorsKenneth R Westerback
2018-03-01Avoid underflow under SUN_CYLCHECK when rounding partition size toKenneth R Westerback
2018-03-01Check return value of getuint64() for ULLONG_MAX, andKenneth R Westerback
2018-02-27Move fsize initialization into get_fsize() to eliminate duplication.Kenneth R Westerback
2018-02-25Bunch of whitespace fixes.Kenneth R Westerback
2018-02-24If you can modify p_cpg in when 'm'odifying a partition, you should beKenneth R Westerback
2018-02-23'partions' -> 'partitions', nuke some erroneous whitespace.Kenneth R Westerback
2017-12-18Tighten /usr/local and /usr/X11R6 so that 8G disks still fit in our defaultAntoine Jacoutot
2017-11-28in auto-allocation, increase size of /usr/src to 1.3G.Sebastian Benoit
2017-09-29don't be silent on auto-allocation failure in write mode. ok millert@ krw@Otto Moerbeek
2017-05-19tweak partition sizes for auto-alloction to better suit 8G disksOtto Moerbeek
2017-04-19Bump numbers for /usr/obj allocation with *big* compilers.Theo Buehler
2017-04-19enlarge obj to satisfy new world order that has *big* compilers andOtto Moerbeek
2017-03-04Allow R (resize auto-partition) after A as well as when started with -A.Otto Moerbeek
2016-12-08move the text describing the % and & units to a better place;Jason McIntyre
2016-12-03provide missing unit suffixes; from ross l richardsonJason McIntyre
2016-10-06init auto-partition table to zeroes; ok tb@Otto Moerbeek
2016-09-21Remove reference to zaurusFrederic Cambus
2016-09-04After aligning the cpg field, non ffs partitions were not displayedAlexander Bluhm
2016-09-02Allow editing cpg in expert mode and align the cpg field properlyOtto Moerbeek
2016-09-01remove sparc reference;Jason McIntyre
2016-09-01remove references to sparcTed Unangst
2016-08-19Start with a default fragsize of 2048, double it for large disks and then capOtto Moerbeek
2016-08-10armish handled some early-gen arm machines, which required tons ofTheo de Raadt
2016-06-19Split readlabel() into two functions, readlabel() and parselabel(), andTheo Buehler
2016-06-13correct pledge for disklabel -R -[fF]Jonathan Gray
2016-06-01Fix automatic disk allocation based on a template which I broke in theTheo Buehler
2016-05-29Refactor and clean up the logic before pledge a bit and fix pledgeTheo Buehler