summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
AgeCommit message (Expand)Author
2023-06-21Add a parameter 'action' to mpfree() so it can optionally discardKenneth R Westerback
2023-06-19Replace eclectic mix of errx(4, "out of memory"), err(4, NULL)Kenneth R Westerback
2023-05-13In the absence of the 'disktype' command line parameter alwaysKenneth R Westerback
2023-05-06Replace pointless %d formatting of 0 values withKenneth R Westerback
2023-01-04Use 'const struct disklabel *' parameters where the disklabel isKenneth R Westerback
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
2022-10-12Nuke D_BADSECT and disktab's 'sf'.Kenneth R Westerback
2022-09-06Delete some unreferenced SMD, ST506 and archaic SCSI #define'sKenneth R Westerback
2022-09-01d_bbsize and d_sbsize have become write-only fields.Kenneth R Westerback
2022-08-31If a partition both starts and ends beyond the end of the unitKenneth R Westerback
2022-07-31The geometry information in stuct disklabel is not used forKenneth R Westerback
2022-02-24Rename parselabel() to parsefstab() and makelabel() toKenneth R Westerback
2022-02-18writelabel() only needs one prototype.Kenneth R Westerback
2022-02-18Move prototypes for checklabel(), readlabel() and parselabel()Kenneth R Westerback
2021-06-24trim usage to match the man page;Jason McIntyre
2020-11-14Constify dktypenames and fstypenames in libc.Philip Guenther
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-04-02Use consistant idiom for checking return value ofKenneth R Westerback
2019-04-02No need for RESTORE (-R) to call DIOCGINFO and mpsave() twice inKenneth R Westerback
2019-04-02Remove l_perror() and rely on warn() for failureKenneth R Westerback
2019-04-01No need to save/restore fields across the invocation ofKenneth R Westerback
2018-08-11Nuke stray/pointless 'volatile' for local var.Kenneth 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-02-25Bunch of whitespace fixes.Kenneth R Westerback
2017-09-29don't be silent on auto-allocation failure in write mode. ok millert@ krw@Otto Moerbeek
2017-03-04Allow R (resize auto-partition) after A as well as when started with -A.Otto Moerbeek
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-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
2016-05-28back out previous; -wAT template vnd0 failsTheo de Raadt
2016-05-28host readlabel() above the pledge so we can avoid pledge violationsBob Beck
2016-05-28fix crash if filename not providedBob Beck
2016-05-28Hoist the opendev() call before the pledge because it can ioctl() whenBob Beck
2015-11-25-A needs cflag too. Noted by sthen@ during install.Kenneth R Westerback
2015-11-24Need 'cpath' for op == EDITOR, as '-F' to write out the ascii label inKenneth R Westerback
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-10-17NUMBOOT is dead! Nuke the variables and abstractions that were usedKenneth R Westerback
2015-10-15Remove disklabel -B (NUMBOOT) support. All the platforms which used to needMiod Vallat
2015-10-11If only displaying the disklabel (the normal thing to do against potentiallyTheo de Raadt
2015-10-05Remove 'landisk' from the comment about NUMBOOT archs. Only oneKenneth R Westerback
2015-09-24Remove hppa/hppa64 from comment about NUMBOOT > 0 architectures.Kenneth R Westerback
2015-09-24Expunge VAX SMD special handling that tried to fill up the lastKenneth R Westerback
2015-09-09No need to check !xxboot inside a 'if (!xxboot) ...' block.Kenneth R Westerback
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
2015-08-15Less damned spurious whitespace.Kenneth R Westerback
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller