Age | Commit message (Collapse) | Author |
|
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
|
|
is used. discussed and ok krw@
|
|
ok krw otto
|
|
gets the declarations it uses. ok krw@
|
|
how -A and A will carve up your disk;
help/ok krw deraadt
|
|
ourselves
ok krw
|
|
cleared in both cases. So just do it inside zero_partitions() since
we are looping over all the partitions there anyway.
Should fix an install corner case discovered by todd@.
|
|
bounds information, ie. the zone of the disk that OpenBSD can use. Have each
pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out
this area and pass it up to userland. Then, delete all the same disk parsing
code from disklabel(8) since the kernel passes it up. Lots and lots of - signs
in the disklabel(8) code.
Tested on as many platforms as possible, the fallout will be repaired as time
goes on. To test, use disklabel -d <drive> and validate that the bounds do not
overlap any boot blocks. This same information is used by disklabel -A...
OK for the concept from krw, miod, and drahn
|
|
ok krw@
|
|
Both cause partition sizes to be displayed using a human readable
format with the units automatically chosen by looking at the smallest
partition in the disk label. Remove forceable humanization in 'A'
code and use '-h' in install scripts.
Prodded & ok deraadt@, verbiage tweaks from jmc@
|
|
sectors, not any 'human' unit in force.
|
|
not OpenBSD partitions.
|
|
If we are humanizing then add a comment to 'total sectors' line
rather than replacing 'total sectors' with a new header.
Suggestion and ok deraadt@
|
|
for success. Fix a couple of bugs where errors in checklabel() got
lost.
Make Editor 'q' and 'x' commands exit with 0 (ok) rather than 1.
i.e. non-zero exit value now reserved for failure, not a decision
to leave the disklabel unchanged. This allows the install script
to use the exit value to catch failures to write a disklabel.
|
|
|
|
written, rather than every time editor_alloc() is called. Respect
'-n' for mountpoint info. Reduces surprise appearance of files when
you 'x' out of Editor.
"my sunglasses did not go dark" deraadt@
|
|
smaller alloc table will have fewer mountpoints and the
extras cause confusion. And any info from '/etc/fstab'
that was loaded into mountpoints needs to be zapped too.
Noticed by jim@
|
|
as it adds partitions. What the heck. Set it to MAXPARTITIONS. That is
the new way we are treating d_npartitions everywhere in any case. It is the
max a label can support. partitions which are not there mark themselves off.
ok krw
|
|
reading the native disklabel. This ensures cylinder alignment.
Fix disklabel to do cylinder alignment arithmetic correctly in -A
mode. Worked by accident before, since the code was protected by
D_VENDOR, which wasn't being set.
ok deraadt@
|
|
Don't do fstabfile check everywhere. Always allocate and handle
mount point arrays. Use fstabfile to control 'n' command and writing
mount point info.
Since mount points are primed from /etc/fstab now, prime origmountpoints
so 'U' works.
'D' and 'z' now free current mount point info. 'U' will not lose
undo info when repeatedly invoked. 'n' accepts existing mount point
name as valid.
|
|
cylinder boundary if SUN_CYLCHECK is defined. Don't bother rounding
any partition size to cylinder boundary if SUN_CYLCHECK is not
defined.
Should fix warning message on sparc64 noticed by dlg@.
ok deraadt@
|
|
|
|
|
|
|
|
ok deraadt@
|
|
also make the %'s add up to 100 again, which was part of the problem
ok krw otto
|
|
and benefit /home in exchange
ok otto
|
|
or without the '-f' option being present. Now you can see in Editor
mode or 'disklabel <dev>' where the partitions that exist will be
mounted in the current configuration.
Tweaks (and libc fixes) from, and ok deraadt@
|
|
|
|
|
|
|
|
low and high ends of the disk sizes it applies to; with otto
|
|
closer, ok deraadt@ krw@
|
|
of the -f flag was reversed.
|
|
the same way 'dflag' is treated. i.e. reset it when the label is
written out so a 'w' followed by a 'q' exits the editor without
further questions. Also set it whenever the 'A' command is executed.
Suggestions by Alexander Hall.
ok deraadt@
|
|
are sure. This will require another solution, based perhaps on comparing
against an earlier form of the label
|
|
without making manual changes does not ask whether you'd like to save the
new automatic disklabel. Change to follow the behaviour of -d and ask
every time. ok krw@.
|
|
offset/size information in MB if the disk is <10G, and in GB
otherwise. '-p' will override this default.
|
|
now show the planned mountpoint layout.
ok deraadt@
|
|
'lab'. So there is no need for the return value. Just use &lab
wherever it was used. No functional change.
Slightly different version read ok to blambert@
|
|
stop auto-allocation as soon as a partition can't fit. Eliminate
the 'no space to allocate ...' messages.
|
|
|
|
just display the auto-allocation plan otherwise. Don't overwrite any
spoofed partitions, insert auto allocated partitions where we can.
This is much more install script and weird architecture friendly. I'm
talking about you, macppc.
Many suggestions and code from otto@, feedback from many, cattle
prod applied by deraadt@.
ok deraadt@
"if it works for >8GB ... put it in" miod@
"to be clear, ok" todd@
|
|
sectors at runtime instead of constantly converting the sector values
in the label to blocks. Adjust names accordingly. No functional change.
|
|
new labels.
|
|
the way disklabel works; move it into DESCRIPTION
ok krw
|
|
and not DL_GETPSIZE().
|
|
'c' from descriptions of d(elete) and z(ero) commands.
Feedback from jmc@
Slightly different version ok jmc@ deraadt@
|
|
boot loaders and update list of NUMBOOT>0 archs.
ok deraadt@
|