| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
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@
|
|
|
|
|
| |
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.
|
|
|
|
| |
Prodded by & ok jmc@
|
| |
|
|
|
|
|
| |
expectation that -R will read the output of disklabel. I suspect we
will find another way to do this; ok otto
|
| |
|
|
|
|
|
|
|
| |
display the partition info by default as is done in the E(ditor). The
physical info is now only displayed if '-v' is specified.
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
when entering E(ditor) mode. Clean up 'u' code and make more effort
to keep label and mountpoint info in sync. Makes 'u' undo-able so
those with vi fingers can apply and revert changes (with perhaps a
'p' or two in between) to validate changes.
'U' suggested by deraadt@.
ok deraadt@
|
|
|
|
| |
include /usr/src and /usr/obj plus some tweaks; ok deraadt@ krw@
|
| |
|
|
|
|
|
|
|
|
|
| |
on disks without an existing label. The 'A' command allocates all space
on the disk into a reasonable partition scheme for a root disk.
Feedback from several, time to work on it in-tree.
Prodded (repeatedly) by and ok deraadt@
|
| |
|
|
|
|
|
|
|
| |
the bounds of the OpenBSD area. Should prevent users from shooting themselves
in the feet.
ok krw@
|
| |
|
| |
|
| |
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
| |
long (>76 chars) for the install script space on the CD jackets.
Requested by deraadt@.
|
|
|
|
|
|
|
| |
OpenBSD area and change the 'p' command to only print the boundaries
and size of the OpenBSD area and the free space within that area.
Introduce a 'l' command to print the header only. With krw@; ok krw@
deraadt@; jmc@ for the man page bits
|