Age | Commit message (Collapse) | Author |
|
ok art@
|
|
by interpreting more fields out of a standard Sun disk label.
ok krw@
|
|
the holes a MMU may have from a given vm_map. This will be automagically
invoked for newly created vmspaces.
On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents
mmap(2) hints which would end up being in the hole to be accepted as valid,
causing unexpected signals when the process tries to access the hole
(since pmap can not fill the hole anyway).
Unfortunately, the logic mmap() uses to pick a valid address for anonymous
mappings needs work, as it will only try to find an address higher than the
hint, which causes all mmap() with a hint in the hole to fail on vax. This
will be improved later.
|
|
kernel builds locally this doesnt change much but over NFS this
cuts about 12% of the build time on my setup (i386).
OK miod@, deraadt@.
|
|
800x600 panel, and document the acceleration code as currently broken on
640x480 panels.
|
|
sugar.
|
|
dance, so that we do not depend on its behaviour. No functional change.
|
|
|
|
|
|
cpu_disklabel can go away, since nothing anymore needs to use it.. except
these two drivers. knock out that code for now to let it compile while
miod gets his fix ready for these drivers.
|
|
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
|
Even if the latter would end up removing the mappings by itself, it would
do so using pmap_remove() because phys_map is not intrsafe; but some
platforms use pmap_kenter_pa() in vmapbuf(). By removing the mappings
ourselves, we can ensure the remove function used matches the enter function
which has been used.
Discussed and theoretical ok art@
|
|
|
|
|
|
|
|
to support hotplug media on most architectures. disklabel setup and
verification done using new helper functions. Disklabels must *always*
have a correct checksum now. Same code paths are used to learn on-disk
location disklabels, to avoid new errors sneaking in. Tested on almost all
cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
|
|
looks right krw@, Righto miod@
|
|
|
|
|
|
|
|
|
|
correct and unify; ok thib miod
|
|
routines (alpha, vax) prove to be not worth keeping. Move
bounds_check_with_label() into the MI world. Eliminate unreliable and
almost certainly useless checks for overwriting a disklabel.
After discussion with deraadt@
|
|
|
|
|
|
implimentations were simply either missing code, or spacing and such.
setdisklabel() can become MI now.
|
|
|
|
- always store our new fatty 16-partitions-with-full-cpg-info style
sun disklabels on the disk.
- correct an error in matching old-style 16-partition matching code;
the checksum spanned a different region
tested by me, groked by krw, which is a lot more than the rest of
the post-hackathon exhausted slackers
|
|
|
|
|
|
vax and alpha.
|
|
there.
'so go to it!' deraadt@
|
|
|
|
not to what some bogus disklabel from the past may say (some of which
may have been caused by older openbsd disklabel programs). resolves
issues seen by myself and Markus Lude on sparc/sparc64 machines
|
|
type of all variables to daddr64_t. this includes the APIs for XXsize()
and XXdump(), all range checks inside bio drivers, internal variables
for disklabel handling, and even uvm's swap offsets. re-read numerous
times by otto, miod, krw, thib to look for errors
|
|
accuracy so that the variious disksubr.c's can be compared easier.
setdisklabel() starts taking an int for openmask.
ok krw, and read by quite a few other people
|
|
for overwriting the disklabel. Reorder some checks so all copies of
bounds_check_with_label do the checks in the same order. Order picked
by using the currently most popular one. Should be no functional
change.
"If it's boring, commit it" deraadt@
|
|
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
|
|
don't call it at attach but at open, so that the correct device can be
used in the DISKLABELDEV() invocation.
Commit and get into miod's test schedule.
'... commit your diff ...' miod@
|
|
convert version 0 to version 1 disklabels.
Suggested by deraadt@.
ok deraadt@ otto@
|
|
subsystems were enabled. others used a *md_diskconf -> diskconf() method to
make sure init_main could "do late setroot". Change all architectures to
have diskconf(), use it directly & late. tested by todd and myself on most
architectures, ok miod too
|
|
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
|
|
bounds_check_with_label() routines as identical as possible without
changing any code. Code nits and adjustments to come.
|
|
ok'd some days ago by jmc@
|
|
|
|
disksort, not b_resid. b_cylinder is defined to be 'b_resid' so no
functional change.
ok deraadt@
|
|
store the information fsck needs. this allows us to create raid
partitions, nicely, of course.
ok miod todd krw
|
|
(and part of setroot); ok miod
|
|
This changes nothing on legacy architectures, but is a bit faster (and simpler)
on the interesting ones.
|
|
ok jmc@
|