| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
zero (should not happen, but did), because the auto-allocate code will
put a filesystem on that partition.
ok otto kurt
|
| |
|
|
|
|
|
|
|
| |
Since getline() returns a C string, we don't need to carry around
the length separately.
ok millert@
|
|
|
|
| |
ok millert@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
has been modified. Use name of disk being edited in fdisk(8) editor
prompt.
Idea from tb@.
ok tb@ deraadt@
|
|
|
|
|
| |
*.ok files whenever space_allocation tables are
modified.
|
|
|
|
|
|
|
|
| |
ioctl() (i.e. == -1). Don't prepend 'ioctl ' to ioctl
name in error or warning messages. Always put the
ioctl name in emitted messages.
No intentional functional change.
|
|
|
|
|
|
|
| |
bare minimum /usr for all sets on amd64 is 920M used space, and we need
some more for upgrades, as well as relinking libs and kernels.
OK deraadt@
|
|
|
|
|
| |
display the disk device whose label is being
edited. Change '>' to '#' when in expert mode.
|
|
|
|
|
|
| |
-F or -f is required;
ok krw
|
| |
|
| |
|
|
|
|
| |
ok deraadt@ as part of larger diff
|
|
|
|
| |
ok krw@ deraadt@ jca@
|
|
|
|
|
| |
to run make build and make regress after a default install.
OK deraadt@
|
|
|
|
|
|
|
|
| |
trying to align partitions to size <= 0 or past the
end of the disk. Emit error message in this case as
in other align errors.
Looks good to otto@.
|
|
|
|
|
|
|
|
| |
prevent double free.
Spotted by jsg@, simpler fix by myself and miko@.
ok jsg@
|
|
|
|
|
|
|
| |
Nuke pointless and inconsistant error message before one get_mp()
invocation.
ok otto@
|
|
|
|
|
|
|
| |
is only printed if the disklabel gets modified. Also, include the new
size.
On failure just report "Amount too big.".
|
|
|
|
|
|
| |
Accept partition changes only if all succeed.
ok tb@ deraadt@
|
|
|
|
|
|
| |
Problem noted and fix tested by jcs@.
ok otto@
|
| |
|
|
|
|
| |
uses of getuint64(). No change to executable.
|
|
|
|
|
| |
point to getuint64() setting it to EINVAL when the user enters an
invalid value or aborts input with a ^D.
|
|
|
|
|
|
|
|
| |
same functions as auto-allocation. parse_sizespec()
and apply_unit(). No intentional functional
change.
Looked good to tb@
|
|
|
|
|
|
|
|
|
|
| |
normal people and is more efficient to boot.
The only intentional functional change was to use mergesort()
instead of heapsort() so that partitions with the same offset
retain their order in the emitted verbiage.
Looked good to tb@, ok kn@
|
|
|
|
|
|
| |
parse_sizespec().
ok otto@
|
|
|
|
|
|
|
| |
editor_countfree() in the function body rather than in
the invocation.
ok millert@
|
|
|
|
|
|
| |
years.
ok otto@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
getuint64() which struggled to know what to do. Add it to the
places rounding is actually wanted by creating and using
alignpartition() which takes parameters to determine what is rounded,
to what boundaries and in what direction.
Simplifies and clarifies logic.
Various minor verbiage tweaks and shuffling of output under
expert mode to improve output during alignments.
Been in snaps for a couple of weeks.
much back & forth with and ok otto@
|
|
|
|
|
|
|
| |
user. Doesn't handle units, '*', etc. Replace the more complex
getuint64 when getting things like the number of tracks per cylinder.
ok otto@
|
|
|
|
|
|
| |
values of getuint64 that indicate errors.
Suggested by & ok otto@
|
|
|
|
|
|
|
|
| |
getstring() to get the string and then parse that in getuint64().
Fix a mis-use of %lld and some whitespace while passing.
ok otto@
|
|
|
|
|
|
|
| |
too large for the receiving fields. Change a couple of do{}while() to
for(;;) for consistancy.
Tweaks & ok otto@
|
|
|
|
| |
ok otto krw
|
|
|
|
|
|
|
|
|
| |
space before '(', eliminate extraneous '{}'. Start of cleaning
up user input processing.
No intentional functional change.
ok otto@ give or take a few '{}' removals.
|
|
|
|
|
|
| |
Improve emitted verbiage while there.
tweaks & ok otto@
|
|
|
|
|
|
|
| |
chunk, not the total amount of free space on the disk. Removes
need for 'totsecs'.
ok otto@ as part of larger diff now completely committed
|
|
|
|
|
|
|
| |
end in SUN_CYLCHECK case. Fixes potential off-by-one in calculating
the number of cylinders available in a chunk.
ok otto@ as part of larger diff
|
|
|
|
|
|
|
| |
goto from one to the other, just move the logic after the if/else. One
less #ifdef. Decrements total_secs in either case.
ok otto@ as part of larger diff
|
|
|
|
|
|
| |
the space available.
ok otto@ as part of larger diff
|
|
|
|
|
|
| |
available.
ok otto@ as part of larger diff
|
|
|
|
| |
ok otto@ as part of larger diff
|
|
|
|
|
|
|
|
|
|
|
|
| |
While there move local variable declaration inside the 'if' and
eliminate separate SUN_CYLCHECK block containing said local variable
declaration.
Add check for attempt to resize a partition to 0, and simplify logic a
bit by recognizing that this means the number of sectors will always
be > 0.
ok otto@
|
| |
|
|
|
|
|
|
|
| |
p_cpg inside get_cpg() instead of separately, much like
get_fsize() and get_bsize() work.
ok otto@
|
|
|
|
|
| |
multiplication and division. Based on a diff from otto@.
OK otto@ krw@
|