Age | Commit message (Collapse) | Author |
|
|
|
extraneous #include <malloc.h>
|
|
and a file is written onto the stick. Without these fixes the
machine panics or hangs.
The usb fix calls the callback when the stick is pulled out to free
the associated buffers. Otherwise we have busy buffers for ever
and the automatic unmount will panic.
The change in the scsi layer prevents passing down further dirty
buffers to usb after the stick has been deactivated.
In vfs the automatic unmount has moved from the function vgonel()
to vop_generic_revoke(). Both are called when the sd device's vnode
is removed. In vgonel() the VXLOCK is already held which can cause
a deadlock. So call dounmount() earlier.
ok krw@, I like this marco@, tested by ian@
|
|
|
|
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.
noone tested, so its going in to force people to run with it.
"put it in" deraadt@
|
|
Tested, tweaked and ok otto@
|
|
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
|
|
|
|
|
need for special case code; ok krw
|
|
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
|
|
because it started to be part of the sysctl variable name
ok deanna@, dlg@
|
|
only the libc snprintf(3) could return this.
ok krw@
|
|
ok beck@ deraadt@
|
|
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
|
|
|
|
"just :wq and do it" tedu@
|
|
of the I/O being attempted. Throw in a comment typo fix to properly
refer to sectors and not blocks.
ok marco@
|
|
ok krw@
|
|
this time!
|
|
should be too
|
|
"reads good" art@ ok marco@
|
|
number (wd.c), and the uses are to find the minimum minor to be
detached.
|
|
but differently named SD/CD ones. No change to .o files.
ok deraadt@ dlg@
|
|
geometry used to 255 heads and 63 sectors/track from 64 heads and 32
sectors. 255/63 makes the cylinders as large as PC/BIOS compatibility
allows, increasing the size of devices that can be supported.
ok pedro@ (long ago) marco@ millert@ weingart@
|
|
media in while the device is open, allow the open anyway. Fixes some
USB devices which do odd things when presented by PREVENT_ALLOW.
Suggestion from mickey@.
ok millert@ marco@
|
|
so we will be able to address devices larger than the 10-byte cdb's allow
us to do.
ok krw@, dlg@
|
|
and for the same reason of preparing for safer handling of users
yanking usb devices out. No functional change.
Copied from bluhm@'s change to sd.c.
|
|
No functional change.
ok krw
|
|
|
|
ok krw
|
|
by bluhm@ for sd. No change to cd.o.
|
|
no binary change, and ok krw@ marco@
|
|
vendor, etc details.
|
|
|
|
|
|
query.
ok krw@
|
|
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert
|
|
ok dlg
|
|
certainly don't need it, or are capable of reporting themselves in
need of a spin up. Feedback from various agreeing it is unlikely such
devices exist.
Fixes devices found by Markus Bergkvist and Johan M:son Lindman.
ok dlg@
|
|
|
|
|
|
back via MTIOCGET ioctl, rather than always reporting -1 (unknown).
Simple 'Set to 0 on rewind, increment on file marks and positioning,
and set back to -1 on any ambiguity' logic. No functional impact on
current operation.
Should allow things like Bacula to work much faster by keeping track
of the current media position.
Adapted from FreeBSD code.
ok beck@
|
|
asked via SCIOCIDENTIFY. More closely emulates the Linux
SCIOCIDENTIFY/SG_EMULATED_HOST combination used by cdparanoia (and
god knows what other ports). Nothing in the tree itself uses
SCIOCIDENTIFY.
Fixes cdparanoia's handling of USB CD drives that can't handle the
MODE SENSE command. cdparanoia sends 'ATAPI' devices only MODE SENSE
BIG (0x5a) commands. Finding actual SCSI devices that might have
trouble with MODE SENSE BIG (i.e. very old devices) behind USB is
deemed highly unlikely.
Problem reported, debugged and fix tested by bernd@.
ok marco@ millert@ miod@
|
|
the mt_fileno and mt_blkno fields from the mtget struct was too hasty.
Subsequent discussions with Kern Sibbold of the Bacula project
revealed these are widely used by tape backup software on many
unicies. The de facto standard is to return -1 if you can't determine
the value.
So add them back and always return -1 as their value. Should allow
Bacula and similar software to at least compile while we investigate
providing meaningful values.
ok beck@
|
|
|
|
|
|
commands via the DVD_LU_SEND_RPC_STATE and DVD_HOST_SEND_RPC_STATE
ioctls respectively.
Thus allowing any region protected DVDs mistakenly delivered by Santa
to the wrong region to be viewed on recalcitrant DVD drives (with the
aid of an appropriate utility like regionset).
No change to any current functions.
Found in my hackers@ folder from August.
From netbsd -> Kurt Miller -> jmc@.
|
|
'transfer', 'tranfered' -> 'transferred'.
|