summaryrefslogtreecommitdiffstats
path: root/sbin/disklabel/disklabel.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-2/+2
2019-04-02Use consistant idiom for checking return value ofkrw1-13/+13
2019-04-02No need for RESTORE (-R) to call DIOCGINFO and mpsave() twice inkrw1-7/+2
2019-04-02Remove l_perror() and rely on warn() for failurekrw1-33/+8
2019-04-01No need to save/restore fields across the invocation ofkrw1-10/+2
2018-08-11Nuke stray/pointless 'volatile' for local var.krw1-2/+2
2018-07-03Nuke some leading spaces and mis-indentations that crept in over thekrw1-5/+5
2018-07-03No need for print_unit to be a global.krw1-3/+3
2018-02-25Bunch of whitespace fixes.krw1-13/+13
2017-09-29don't be silent on auto-allocation failure in write mode. ok millert@ krw@otto1-4/+7
2017-03-04Allow R (resize auto-partition) after A as well as when started with -A.otto1-1/+2
2016-09-04After aligning the cpg field, non ffs partitions were not displayedbluhm1-2/+2
2016-09-02Allow editing cpg in expert mode and align the cpg field properlyotto1-3/+3
2016-06-19Split readlabel() into two functions, readlabel() and parselabel(), andtb1-20/+35
2016-06-13correct pledge for disklabel -R -[fF]jsg1-1/+4
2016-06-01Fix automatic disk allocation based on a template which I broke in thetb1-4/+4
2016-05-29Refactor and clean up the logic before pledge a bit and fix pledgetb1-20/+17
2016-05-28back out previous; -wAT template vnd0 failsderaadt1-3/+8
2016-05-28host readlabel() above the pledge so we can avoid pledge violationsbeck1-8/+3
2016-05-28fix crash if filename not providedbeck1-1/+3
2016-05-28Hoist the opendev() call before the pledge because it can ioctl() whenbeck1-7/+7
2015-11-25-A needs cflag too. Noted by sthen@ during install.krw1-2/+2
2015-11-24Need 'cpath' for op == EDITOR, as '-F' to write out the ascii label inkrw1-7/+3
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become morederaadt1-1/+28
2015-10-17NUMBOOT is dead! Nuke the variables and abstractions that were usedkrw1-43/+8
2015-10-15Remove disklabel -B (NUMBOOT) support. All the platforms which used to needmiod1-241/+3
2015-10-11If only displaying the disklabel (the normal thing to do against potentiallyderaadt1-1/+5
2015-10-05Remove 'landisk' from the comment about NUMBOOT archs. Only onekrw1-2/+2
2015-09-24Remove hppa/hppa64 from comment about NUMBOOT > 0 architectures.krw1-2/+2
2015-09-24Expunge VAX SMD special handling that tried to fill up the lastkrw1-14/+1
2015-09-09No need to check !xxboot inside a 'if (!xxboot) ...' block.krw1-12/+10
2015-08-20<stdlib.h> is included, so do not need to cast result fromderaadt1-2/+2
2015-08-15Less damned spurious whitespace.krw1-3/+3
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichmillert1-3/+7
2015-04-29some fine-tuning in SYNOPSIS, usage, and order of options, with jmchenning1-3/+3
2015-04-29support passing a template file for the auto-allocation to disklabel.henning1-6/+13
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++deraadt1-9/+9
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt1-2/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-2/+2
2014-07-20Make sure the correct errno is reported by warn* or err* and notguenther1-2/+2
2014-05-05Enhance reading of saved ascii labels (-R) to process mountpointkrw1-7/+40
2014-04-23don't clear label before readasciilabel(), it will not fill in someotto1-2/+1
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingmiod1-2/+2
2014-02-14Ooops. r1.169 was supposed to add 'total sectors' to the list ofkrw1-11/+1
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.deraadt1-6/+6
2013-10-15The disklabel variables aflag and dflag are boolean, use logicalbluhm1-2/+2
2013-10-03Print u_int64_t variables with %llu.krw1-4/+4
2013-09-10The rule is: daddr_t variables hold counts of 512-byte blocks, a.k.a.krw1-4/+4
2013-06-18Initialize duid memory before shifting stuff into elements of it.krw1-3/+5
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt1-3/+3