| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
again fits on one page. Suggested by, tweaked and ok deraadt@.
|
| |
|
|
| |
functional change. Noticed by lint.
|
| |
|
|
|
| |
Problem found by ckuethe@, slightly different fix than the one
proposed by otto@ applied.
|
| |
|
|
| |
in find_bounds() when processing a DOS MBR.
|