| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
| |
|
|
| |
ok mpi@ kspillner@
|
| |
|
|
| |
after discussions with beck deraadt kettenis.
|
| | |
|
| |
|
|
|
|
|
|
| |
If the driver was doing some IO, we remove the timeouts, and force the
fdc state machine into IOTIMEDOUT state with the final timeout count
before a clean retry. In theory upon resume it should freak out quietly,
and try the operation again.
Noone has stepped forward to test this yet.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
overloading of that thing.
the only hardware that seems to care about cylinders in our tree
are floppy drives, and the drivers for those calculate their own
cylinders from logical block addresses and ignore whatever the rest
of the kernel thought b_cylinders should be.
most of this diff is moving the floppy drivers to using b_resid as
a resid and using that as part of the calculation for real cylinder
values.
the rest of the diff is getting rid of the useless assignments to
b_cylinder that dont get used by anything (now that disksort is
gone).
ok miod@
|
| |
|
|
|
|
| |
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
| |
|
|
| |
tested by me and rapha@
|
| |
|
|
|
| |
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
| |
|
|
|
|
| |
cleaning up some shutdown-hook related code on the way.
(A few drivers related to sparc are still skipped at kettenis' request)
ok kettenis mlarkin, tested by many others too
|
| |
|
|
| |
ok md5
|
| |
|
|
|
|
|
|
|
| |
of silly flag twiddling code in various disk drivers.
ok deraadt@, miod@
N.B., users will need a -current disklabel(8) to be able to write new
disklabels to disk now.
|
| |
|
|
| |
ok krw@ deraadt@
|
| |
|
|
|
|
| |
automatic reading of disklabel on attach.
ok deraadt@ miod@ krw@
|
| |
|
|
|
|
|
| |
no point in keeping it around.
"i like this" thib@ (a while back); ok krw@ and oga@; reminder to
update the man page and tweaks jmc@
|
| |
|
|
|
|
|
| |
disk_attach() is called by the device driver. We will be building on
this shortly.
ok deraadt@ krw@
|
| |
|
|
| |
ok miod@; "please go ahead" jsing@
|
| |
|
|
|
|
|
|
|
|
|
| |
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
| |
|
|
|
|
|
| |
identifier, allowing the disk to be identified without relying on the
device name.
ok deraadt@ krw@ beck@ marco@ todd@
|
| |
|
|
| |
behaviour.
|
| |
|
|
|
|
|
|
| |
label. Use the existing label, since we now check and reuse some
values in it. And that's what all other drivers do. Bonus: we don't
need that label on the stack anymore.
ok deraadt@
|
| |
|
|
| |
ok otto@, agreed by deraadt@
|
| | |
|
| |
|
|
|
|
| |
into panic() and remove call to Debugger()
hint and ok deraadt@
|
| |
|
|
|
|
|
|
|
| |
errnos. Note that the error strings are being ignored, since we long ago
decided to not spam the console, and there is no other nice way to use the
errors (without changing the ioctls to pass it back)
The errno is now useful, since we can pass b_error from failing IO up, and
the drive can decide how to use that
ok miod
|
| |
|
|
| |
ok krw@
|
| |
|
|
|
| |
provided by Parfait
ok oga
|
| |
|
|
|
|
|
| |
This should take care of the simpler ones (i.e., timeout values of
integer multiples of hz).
ok krw@, art@
|
| |
|
|
| |
ok thib beck art
|
| |
|
|
|
|
|
|
| |
file copies to nfsv2 causes the system to eventually peg the console.
On the console ^T indicates that the load is increasing rapidly, ddb
indicates many calls to getbuf, there is some very slow nfs traffic
making none (or extremely slow) progress. Eventually some machines
seize up entirely.
|
| |
|
|
|
|
|
|
| |
biowait() reads that do *not* come from the buffer cache - we use the
B_RAW flag to identify these at art's suggestion - since it makes sense
and the flag was not being used. this just flags all these buffers with
B_RAW - biodone already ignores returned buffers marked B_RAW.
ok art@
|
| |
|
|
|
|
| |
driver(s). Adapted from sd driver.
ok marco@
|
| | |
|
| |
|
|
|
|
| |
for the addition of missing disklabel related ioctl's.
ok deraadt@
|
| |
|
|
| |
obvious.
|
| |
|
|
| |
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
| | |
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
|
| |
|
|
|
|
| |
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
|
| |
|
|
|
|
| |
be called once), please also make it static so that the compiler does not
generate a 2nd one to export to outside callers! that is a stupid waste
of space.
|
| |
|
|
|
|
| |
readdisklabel/writedisklabel.
ok deraadt@ weingart@ conceptual ok drahn@
|
| |
|
|
|
|
|
|
|
| |
need the debug info uncomment the printf's you need. Crude but
effective way to suppress 'no disklabel' errors that pop up at the
most innconvenient times to frighten users. More elegant method,
DPRINTF-like constructs or something, later.
"Yay!" marco@ ok deraadt@
|
| |
|
|
| |
ok kettenis@ cloder@ tom@ henning@
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.
From art@, tested by many some time ago.
|
| |
|
|
|
|
|
|
| |
floppies and cd's were removable, displaying that fact in disklabel
output was unlikely to help. And the display in disklabel was the only
use of D_REMOVABLE in the tree.
ok marco@
|
| |
|
|
|
|
|
|
|
| |
Only 'Japanese 1.2MB' floppies have sectors that are not 512 bytes, according
to isa/fd.c's fd_types[].
SCSI/ATAPI cd's already use sectors, and mcd cd's should be no different.
So there should be no functional change.
|
| |
|
|
|
|
|
| |
fd. Eliminate unused variable and FDC_BSIZE which was only used to
set value of the unused variable.
No change to object file.
|
| | |
|