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@
|
|
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
|
|
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@
|
|
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@
|
|
|
|
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@
|
|
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@
|
|
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@
|
|
and not DL_GETPSIZE().
|
|
boot loaders and update list of NUMBOOT>0 archs.
ok deraadt@
|
|
|
|
ok krw@
|
|
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@
|
|
|
|
|
|
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@
|
|
bsize fields for UNUSED partitions. '-R' already skipped processing
these fields for such partitions. Eliminates an XXX.
ok deraadt, "makes sense" miod@
|
|
the bounds of the OpenBSD area. Should prevent users from shooting themselves
in the feet.
ok krw@
|
|
the recursive findopenbsd() function. reported by PR 5905.
tested by many
ok deraadt@
|
|
|
|
(using a recursion limit). now OpenBSD can be installed in a
subsequent DOS/Linux-compatible extended partition.
ok krw@ deraadt@
|
|
|
|
PR #5872.
ok millert@ deraadt@
|
|
OK deraadt, otto, krw.
|
|
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
|
|
extended DOS partition. the concept of extended partitions is very
simple, it is just another mbr at the partition offset (well, the
standard "EBR" is a linked list with a few limitations, but this diff
works with both variants).
this diff has been in the snapshots for a while.
with input from weingart@ and krw@
ok deraadt@
|
|
in 1.126, found by nick during a test install; ok krw
|
|
#if NUMBOOT > 0 section.
|
|
the -r removal. Found by drahn@ when attempting a landisk install.
ok deraadt@ drahn@
|
|
that was contingent on it being set.
|
|
the '-c' and '-d` commands.
With the removal of 'rflag' (logically making it always false), (a ||
(rflag && cflag + dflag) || b) should be (a || b), not (a || (cflag +
dflag) || b).
This fixes 'disklabel -w -d <disk>' as used in the install scripts.
Reported by Peter Kun on misc@. Thanks!
|
|
"make sense" miod@ ok deraadt@
|
|
does an unsigned comparison and read() can return -1. Use '!=' instead
of '<' since read() can't return more than 'sizeof Y'. Not perfect
(that would require a separate test for -1) but a very common usage.
Do the same for a write(), and a couple of read() calls which are
probably ok but why be inconsistant?
This, as the last couple of commits, found by ian@ as a result of
poking around in fsck_msdos() when his new iPod had problems vs
OpenBSD.
Concept reviewed by miod@, beck@, otto@ and ian@.
|
|
- align usages and their descriptions (text enclosed in brackets);
- blank[], used for padding prior to r1.86, can improve readability
of usage on 80-column displays if NUMBOOT == 2
ok jsing@, krw@
|
|
temporarily restoring default behaviour. This is not 100% ideal.
But this fixes editor handling in mail... bah, it is really unfortunate
that got broken
- refactor the restoration code as well, to make it simpler
ok ray
|
|
|
|
|
|
noone cares to see anymore (for those architectures where this is
important, disklabel(8) continues to enfoce the cyl-locked policy)
ok otto
|
|
don't say "can't read master boot record". Just display an empty
disklabel. Really yucky code that needs a lot of tough love, but
marginally less confusing until then.
ok deraadt@
|
|
converted to v1 format before being used.
ok deraadt@ otto@
|
|
bit D_VENDOR if they face the Sun cylinder / start-at-zero semantics. Other
disklabels found on these architectures do not have these issues, and do
not need to be constrained. checked by otto
|
|
|
|
2T disks, partitions and offsets. ok deraadt@
|
|
|