Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't overflow or underflow value when [+-] operators | 2018-03-01 | 1 | -6/+17 | ||
| | | | | | | applied during getuint64()'s input parsing. ok otto@ | |||||
* | Avoid underflow under SUN_CYLCHECK when rounding partition size to | 2018-03-01 | 1 | -9/+11 | ||
| | | | | | | | | | | | | | multiple of cylinder size. Eliminate various compiler warnings by shuffling unused variables under !SUN_CYLCHECK. Consolidate two SUN_CYLCHECK blocks into one. Add D_VENDOR check inside SUN_CYLCHECK block. Tweak & ok otto@ | |||||
* | Check return value of getuint64() for ULLONG_MAX, and | 2018-03-01 | 1 | -3/+6 | ||
| | | | | | | | ULLONG_MAX - 1, not <= 0. This fixes the detection of ^D and invalid values during the 'R'esize command. ok otto@ | |||||
* | Move fsize initialization into get_fsize() to eliminate duplication. | 2018-02-27 | 1 | -36/+34 | ||
| | | | | | | | | Ensure get_fsize() is always called before get_bsize(). And during (R)esize only call the pair a second time when a partition is actually shrunk. ok otto@ | |||||
* | Bunch of whitespace fixes. | 2018-02-25 | 1 | -21/+21 | ||
| | | | | ok otto@ | |||||
* | If you can modify p_cpg in when 'm'odifying a partition, you should be | 2018-02-24 | 1 | -2/+3 | ||
| | | | | | | | able to do the same when 'a'dding a partition. Only in 'X'pert mode of course. ok otto@ | |||||
* | 'partions' -> 'partitions', nuke some erroneous whitespace. | 2018-02-23 | 1 | -6/+6 | ||
| | | | | ok otto@ | |||||
* | Tighten /usr/local and /usr/X11R6 so that 8G disks still fit in our default | 2017-12-18 | 1 | -3/+3 | ||
| | | | | | | partitioning scheme. ok florian@ benno@ | |||||
* | in auto-allocation, increase size of /usr/src to 1.3G. | 2017-11-28 | 1 | -2/+2 | ||
| | | | | | Our tree is now 1.1G big. ok florian@, sure deraadt@ | |||||
* | don't be silent on auto-allocation failure in write mode. ok millert@ krw@ | 2017-09-29 | 1 | -4/+5 | ||
| | ||||||
* | tweak partition sizes for auto-alloction to better suit 8G disks | 2017-05-19 | 1 | -4/+4 | ||
| | | | | ok kr@ aja@ | |||||
* | enlarge obj to satisfy new world order that has *big* compilers and | 2017-04-19 | 1 | -6/+2 | ||
| | | | | remove condition for static linking; ok tb@ | |||||
* | Allow R (resize auto-partition) after A as well as when started with -A. | 2017-03-04 | 1 | -7/+8 | ||
| | | | | This ability was lost in editor.c 1.264; noted by ajacoutot@; ok krw@ | |||||
* | init auto-partition table to zeroes; ok tb@ | 2016-10-06 | 1 | -1/+2 | ||
| | ||||||
* | Allow editing cpg in expert mode and align the cpg field properly | 2016-09-02 | 1 | -4/+34 | ||
| | | | | ok krw@ | |||||
* | remove references to sparc | 2016-09-01 | 1 | -13/+1 | ||
| | ||||||
* | Start with a default fragsize of 2048, double it for large disks and then cap | 2016-08-19 | 1 | -5/+9 | ||
| | | | | | based on sector size. This avoid too large fragments on 4k disks. Problem noted by David Vasek; ok krw@ | |||||
* | Remove NULL-checks before free(). ok tb@ | 2015-12-10 | 1 | -3/+2 | ||
| | ||||||
* | Use pledge "disklabel" as needed. The theory here is these tools become more | 2015-11-23 | 1 | -21/+6 | ||
| | | | | | resistant against memory correctup, if a corrupt filesystem is given to them. ok krw | |||||
* | NUMBOOT is dead! Nuke the variables and abstractions that were used | 2015-10-17 | 1 | -3/+3 | ||
| | | | | | | to build boot blocks. ok miod@ | |||||
* | Remove disklabel -B (NUMBOOT) support. All the platforms which used to need | 2015-10-15 | 1 | -14/+1 | ||
| | | | | | | it are now using MI installboot for that purpose. ok krw@ deraadt@ | |||||
* | Avoid a SIGSEGV with FGJ malloc.conf flags when a template is used. | 2015-09-08 | 1 | -4/+2 | ||
| | | | | Found by jsg@. OK jsg@ deraadt@ | |||||
* | Separately track the number of items in alloc_table in a variable. With | 2015-05-08 | 1 | -3/+5 | ||
| | | | | | | | | 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@ | |||||
* | g/c unneeded second char * var, ok benno | 2015-04-29 | 1 | -6/+5 | ||
| | ||||||
* | support passing a template file for the auto-allocation to disklabel. | 2015-04-29 | 1 | -9/+177 | ||
| | | | | | | 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 | |||||
* | for small mem machines, make sure max does not get smaller than | 2015-03-17 | 1 | -2/+2 | ||
| | | | | min, otherwise the constraint cannot be satisfied; ok deraadt@ okan@ | |||||
* | Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or | 2015-01-20 | 1 | -2/+2 | ||
| | | | | | delete <sys/param.h> if now possible ok guenther | |||||
* | Constify the driver name to disk type table, and remove rz and ccd from that | 2015-01-16 | 1 | -9/+8 | ||
| | | | | | list. ok krw@ millert@ | |||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -4/+8 | ||
| | | | | | | | | | 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) | |||||
* | Userland reallocarray() audit. | 2014-10-11 | 1 | -2/+2 | ||
| | | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ | |||||
* | Forward declarations for mpcopy & mpfree. | 2014-07-10 | 1 | -3/+1 | ||
| | | | | OK miod@, deraadt@ | |||||
* | remove unused variable | 2014-05-02 | 1 | -2/+1 | ||
| | | | | ok otto@ krw@ | |||||
* | 'for (part == 0; ...)' is not the same as 'for(part = 0; ...)'. | 2014-05-02 | 1 | -2/+2 | ||
| | | | | | | | Should fix mysterious crashes when twiddling mount points. Too much Marrakesh sun. Pointed out by Owain G. Ainsworth. Thanks! | |||||
* | Don't leak mountpoint info. Now with replacement for silly realloc() dance | 2014-04-21 | 1 | -13/+23 | ||
| | | | | | | | that appears to fix mysterious crashes seen with previous version that tried to sneak in to 5.5. ok otto@ | |||||
* | Proper validation and computation of bsize in expert mode; ok krw@ millert@ | 2014-04-03 | 1 | -6/+8 | ||
| | ||||||
* | Revert mountpoints tweaking. Needs much more serious surgery than time | 2014-02-22 | 1 | -19/+4 | ||
| | | | | | | | 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@ | |||||
* | Further tweak to mpfree(). Don't bother setting about-to-be-freed | 2014-02-16 | 1 | -4/+2 | ||
| | | | | memory to NULL. | |||||
* | Don't risk dereferencing NULL pointer to mountpoints array | 2014-02-15 | 1 | -1/+4 | ||
| | | | | when calling mpfree() with the array. | |||||
* | Stop leaking mount point strings in temporary copies of the | 2014-02-15 | 1 | -4/+18 | ||
| | | | | mountpoints array. | |||||
* | Whole bunch of (unsigned char) casts carefully added for ctype calls. | 2013-11-22 | 1 | -5/+5 | ||
| | | | | Careful second audit by millert | |||||
* | add a variety of missing prototypes | 2013-11-12 | 1 | -1/+4 | ||
| | ||||||
* | improve on last commit: take 10% for swap, with a max of physmem plus a bit | 2013-10-21 | 1 | -3/+3 | ||
| | ||||||
* | allow more space for swap with big disks, useful for hibernation; | 2013-10-18 | 1 | -2/+2 | ||
| | | | | requested by deraadt@ | |||||
* | The disklabel variables aflag and dflag are boolean, use logical | 2013-10-15 | 1 | -2/+2 | ||
| | | | | | instead of binary operators for comparison. OK krw@ | |||||
* | Print u_int64_t variables with %llu. | 2013-10-03 | 1 | -2/+2 | ||
| | ||||||
* | The rule is: daddr_t variables hold counts of 512-byte blocks, a.k.a. | 2013-09-10 | 1 | -8/+8 | ||
| | | | | | | | | | | | 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@ | |||||
* | final removal of daddr64_t. daddr_t has been 64 bit for a long enough | 2013-06-11 | 1 | -8/+8 | ||
| | | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others | |||||
* | make sure the fs blocksize doesn't get too big; ok krw@ | 2013-04-19 | 1 | -1/+3 | ||
| | ||||||
* | Replace a '512' with DEV_BSIZE. Calculate physmem size in blocks and | 2012-07-13 | 1 | -3/+3 | ||
| | | | | | | not sectors, since the values being tested/manipulated in the auto_alloc tables are blocks at that point. Use MEG(256) instead of hand expanding it when testing physmem. | |||||
* | getuint() -> getuint64() to make it crystal clear. No functional | 2012-03-18 | 1 | -17/+17 | ||
| | | | | change. |