| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
it to 0 immediately after a bzero() of the entire label. Nor in
swapping endianness since nobody looks at it. Don't touch the actual
field in disklabel. Yet.
ok deraadt@ as part of larger diff that needs splitting up.
|
|
|
|
| |
trying to build.
|
|
|
|
|
|
|
|
|
|
| |
read and validate disklabels on GPT partitioned disks. Makes it much
more likely GPT partitioned disks with non-512-byte sectors will
work.
Part of the larger reverted GPT work.
ok deraadt@
|
|
|
|
|
|
|
| |
a buf. Otherwise stale data might cause a successful I/O to be
seen as a failed I/O.
ok tedu@
|
|
|
|
| |
Requested by deraadt@
|
|
|
|
|
|
|
|
|
| |
archs and different sized disk sectors. Make MBR have higher priority
than GPT. Add many paranoia checks and associated DPRINTF's to make
further development easier. Keep everything hidden behind #ifdef
GPT.
Tested and ok doug@ mpi@. Nothing bad seen by millert@.
|
|
|
|
|
|
| |
routines use crc32().
ok jsg@ doug@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when workqs were introduced, we provided a second argument so you
could pass a thing and some context to work on it in. there were
very few things that took advantage of the second argument, so when
i introduced pools i suggested removing it. since tasks were meant
to replace workqs, it was requested that we keep the second argument
to make porting from workqs to tasks easier.
now that workqs are gone, i had a look at the use of the second
argument again and found only one good use of it (vdsp(4) on sparc64
if you're interested) and a tiny handful of questionable uses. the
vast majority of tasks only used a single argument. i have since
modified all tasks that used two args to only use one, so now we
can remove the second argument.
so this is a mechanical change. all tasks only passed NULL as their
second argument, so we can just remove it.
ok krw@
|
|
|
|
|
|
| |
Diff from dlg@.
ok jsing@
|
|
|
|
|
|
| |
disks) with taskq. Diff originally from blambert@.
ok kettenis@
|
| |
|
|
|
|
|
|
| |
by passing random stack garbage as the size to free(9).
From David Imhoff
|
| |
|
|
|
|
|
|
| |
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt
|
| |
|
| |
|
|
|
|
| |
ok doug tedu
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
|
|
|
| |
for the protective ones when creating a fake label, but do, for the system
ones, so that we may eventually copy boot code to them.
From Markus Mueller
|
|
|
|
|
|
|
| |
Contributed by Markus Mueller; code based upon Bitrig's GPT support, with
stricter GPT structures validation and support for alternate header places.
ok deraadt@ jsing@ krw@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
From Markus Mueller.
ok krw@ miod@ tedu@
|
|
|
|
|
|
|
|
| |
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called
in some places. This change introduces a new MI function reboot(9) which is
simply a wrapper to call MD boot(9).
OK kettenis@ deraadt@
|
|
|
|
| |
deraadt says go ahead
|
|
|
|
|
|
|
|
| |
replace the OpenBSD bounds with the A6 MBR partition limits. Thus
preserving any changes the user makes with the 'b' command in
disklabel.
Reported, tested & ok blambert@, ok deraadt@
|
|
|
|
| |
ok phessler@ deraadt@ jsing@ guenther@
|
|
|
|
|
|
|
|
| |
For now and until 5.5 is cut, also read from current/incorrect spot
so people don't immediately lose their existing disklabels on such
devices.
Problem spotted by David Vasek.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
safely remove disksort.
most hardware and pretty much all of the kernel has moved to logical
block addressing when dealing with disks, so the assumptions disksort
was built against arent useful these days. it also has bad edge cases
with lots of sequential writes being able to starve other io requests
in the system. these issues have been addressed by becks nscan
implementation, which disksort was previously deprecated in favour
of.
this removes the guts of disksort and the bufq wrapper around it.
ok miod@
|
| |
|
|
|
|
|
|
| |
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
readdoslabel(). Ditto all the MD variables whose addresses are passed
to readdoslabel() via partoffp.
Fix some 512-byte block vs disk sector confusion in hppa and sgi.
All the DL_GETxxxxx() defines return disk sector values. All
DL_SETxxxx() take disk sector values. These changes should be no-ops
until a drive using non-512-byte-sectors is encountered.
ok deraadt@
|
|
|
|
| |
diskerr() messages by doing DL_SECTOBLK() dance repeatedly.
|
|
|
|
|
| |
values rather than daddr_t values. So use u_int64_t to store them
and %llu to print them in checkdisklabel().
|
|
|
|
|
|
|
|
|
|
|
|
| |
values for the p_fragblock and p_cpg fields. But we were saving the
info for open partitions only. Instead, look at all partitions.
And stop discarding the new partition type.
In addition to general betterness, this lets you change the RAW_PART
partition (a.k.a. 'c') to UNUSED. This problem was pointed out by
Federico Giannici via misc@.
ok otto@
|
|
|
|
| |
tested on vax (gcc3) ok miod@
|
|
|
|
|
|
| |
this is necessary to enable -Wformat or -Wno-error=format
ok deraadt@
|
|
|
|
|
| |
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
|
|
|
|
|
|
| |
the random pool as unique-esque-but-not-secret data.
inspired by conversations with tedu@/deraadt@
ok deraadt@
|
|
|
|
|
|
| |
in MI code; gcc 2.95 does not accept such annotation for function pointer
declarations, only function prototypes.
To be uncommented once gcc 2.95 bites the dust.
|
|
|
|
|
|
| |
function pointer arguments which are {used as,} wrappers around the kernel
printf function.
No functional change.
|
|
|
|
|
|
|
|
|
|
| |
the 0x55aa signature. Don't try FAT detection if we have found an
OpenBSD MBR partition. Don't try to read a disklabel from 'bare'
FAT media. There can't be one.
Finally, don't allow the writing of a disklabel on 'bare' FAT media.
There is no safe spot for it, and splatting it in the middle of the
FAT structures has not proved helpful.
|
|
|
|
| |
'fattest' to 'mbrtest'. No change to .o.
|
|
|
|
|
|
| |
actually doing so before using them
OK deraadt@, krw@
|
|
|
|
|
|
|
| |
the message less scary and print out the failing devices to improve
troubleshooting.
ok jsing@
|
|
|
|
|
|
|
|
| |
callback for this disk.
Fixes an issue found by krw on macppc.
ok krw@
|
|
|
|
|
|
| |
to locate the root via DUID.
ok krw@
|
| |
|