summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2015-10-05Remove 'landisk' from the comment about NUMBOOT archs. Only oneKenneth R Westerback
NUMBOOT arch is left: Vax.
2015-10-05Remove disklabel -B support on landisk - superseded by MI installboot.Miod Vallat
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
cylinder of the disk with extra copies of the boot blocks and disklabel. There are no plans to ever support the native SMD controllers that would find this useful. ok miod@
2015-09-24hppa/hppa64 use installboot(8) now, not -B/-b.Kenneth R Westerback
Only vax and landisk left using -B/-b. ok jsing@ miod@
2015-09-10use .In rather than .Fd #includeIngo Schwarze
2015-09-09No need to check !xxboot inside a 'if (!xxboot) ...' block.Kenneth R Westerback
ok otto@ deraadt@
2015-09-08Avoid a SIGSEGV with FGJ malloc.conf flags when a template is used.Todd C. Miller
Found by jsg@. OK jsg@ deraadt@
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
malloc, calloc, realloc* ok krw millert
2015-08-15Less damned spurious whitespace.Kenneth R Westerback
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller
is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@
2015-05-19improve spacing in disklabel template.Igor Sobrado
2015-05-08Separately track the number of items in alloc_table in a variable. WithStuart Henderson
the changes for handling template files in r1.293, alloc_table became a pointer to an array of structs (rather than the array itself), so nitems(alloc_table) no longer returns the number of elements. As found by sebastia@, autosize would only try the first allocation scheme, so installation would fail on small disks. ok henning@
2015-04-29some fine-tuning in SYNOPSIS, usage, and order of options, with jmcHenning Brauer
2015-04-29g/c unneeded second char * var, ok bennoHenning Brauer
2015-04-29support passing a template file for the auto-allocation to disklabel.Henning Brauer
template gives mountpoints, min-max size ranges and percentage of disk foremost intended for autoinstalls, installer bits to follow soon. with input from many, ok theo
2015-03-17for small mem machines, make sure max does not get smaller thanOtto Moerbeek
min, otherwise the constraint cannot be satisfied; ok deraadt@ okan@
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
ok tedu miod
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-16Constify the driver name to disk type table, and remove rz and ccd from thatMiod Vallat
list. ok krw@ millert@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-16Yes /etc/disklabels/ is a good practice for placing labels of disksTheo de Raadt
in case of catastropy. But it is so poorly documented that any admin is more likely to store the labels elsewhere, so let's stop bothering with providing the directory. Discussed a bit, no objections.
2014-07-10Forward declarations for mpcopy & mpfree.Florian Obser
OK miod@, deraadt@
2014-05-07jmc@ points out '-F/-f' are available only in conjunction withKenneth R Westerback
'-E' and '-R'.
2014-05-05Enhance reading of saved ascii labels (-R) to process mountpointKenneth R Westerback
information if present. Can be used with -F/-f options to create an fstab from the saved label. ok otto@
2014-05-02remove unused variableCharles Longeau
ok otto@ krw@
2014-05-02'for (part == 0; ...)' is not the same as 'for(part = 0; ...)'.Kenneth R Westerback
Should fix mysterious crashes when twiddling mount points. Too much Marrakesh sun. Pointed out by Owain G. Ainsworth. Thanks!
2014-04-23don't clear label before readasciilabel(), it will not fill in someOtto Moerbeek
required fields like disk size, causing consistency check failures. with and ok krw@
2014-04-21Don't leak mountpoint info. Now with replacement for silly realloc() danceKenneth R Westerback
that appears to fix mysterious crashes seen with previous version that tried to sneak in to 5.5. ok otto@
2014-04-13At some point, we are going to switch the mandoc(1) defaultIngo Schwarze
from -Tascii to -Tlocale, even though not quite yet because there are more important things to do first. But let's already make -Tascii explicit in the build system right now, it is safer anyway.
2014-04-03Proper validation and computation of bsize in expert mode; ok krw@ millert@Otto Moerbeek
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
2014-02-22Revert mountpoints tweaking. Needs much more serious surgery than timeKenneth R Westerback
permits before release, and is pointless without other following diffs to justify it that will not make release. Should fix segfault's during install reported by Rod Whitworth on tech@
2014-02-16Further tweak to mpfree(). Don't bother setting about-to-be-freedKenneth R Westerback
memory to NULL.
2014-02-15Don't risk dereferencing NULL pointer to mountpoints arrayKenneth R Westerback
when calling mpfree() with the array.
2014-02-15Stop leaking mount point strings in temporary copies of theKenneth R Westerback
mountpoints array.
2014-02-14Ooops. r1.169 was supposed to add 'total sectors' to the list ofKenneth R Westerback
fields that are ignored when reading an ascii disklabel. Actually remove the parsing of 'total sectors', which was just above the line trying to skip said parsing. Spotted when halex@ forced me to read this code again.
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
Careful second audit by millert
2013-11-12add a variety of missing prototypesTheo de Raadt
2013-10-31List all generated files in CLEANFILES.Ingo Schwarze
Issue mentioned by fgs@ on ICB. ok fgs@ bluhm@ krw@
2013-10-21improve on last commit: take 10% for swap, with a max of physmem plus a bitOtto Moerbeek
2013-10-18allow more space for swap with big disks, useful for hibernation;Otto Moerbeek
requested by deraadt@
2013-10-15The disklabel variables aflag and dflag are boolean, use logicalAlexander Bluhm
instead of binary operators for comparison. OK krw@
2013-10-03Print u_int64_t variables with %llu.Kenneth R Westerback
2013-09-10The rule is: daddr_t variables hold counts of 512-byte blocks, a.k.a.Kenneth R Westerback
DEV_BSIZE blocks. Counts of possibly other-sized blocks (e.g. disk sector addresses) are u_int64_t. The values stored in disklabels are counts of possibly other-sized blocks and hence should be handled with u_int64_t variables. Start enforcing this rule. No intended functional change. Rule strongly suggested by deraadt@
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-06-18Initialize duid memory before shifting stuff into elements of it.Kenneth R Westerback
No doubt quiets one or more of the fringe compilers out there. Use variable 'part' rather than recalculating same value in the subsequent printf(). From dhill. ok otto@