| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise, the scsi devices that it is trying to issue commands to may
have gone away. This is what caused shutdown to hang on ia64 systems
with mpt scsi controllers. The bus system has torn down the device tree
and reset the mpt controller etc, and suddenly along comes dashutdown
and wants to issue a few more scsi commands.... <HANG!>
This shouldn't work on i386 either, but it seems to work solely due
to luck.
|
|
|
|
| |
Add FreeBSD Id tag where missing.
|
|
|
|
|
|
| |
PR: kern/34712
Submitted by: Oliver Fromme <olli@lurza.secnetix.de>
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
But for some reason the block size is different when a different type of
tape is placed in the drive. This commit fixes that.
PR: 46209
Submitted by: Alex Wang <alex@alexwang.com>
Approved by: mjacob
|
|
|
|
|
|
|
| |
so the device won't stay marked as open whereas it isn't.
Approved by: re, njl
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
That reference is to be held only if daopen() has been successful
and until daclose() releases it. daclose() won't be called if
daopen() has failed, though.
Approved by: re, njl
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: bde
Approved by: re (previously)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If the value from the user is less than 177, assume it is a multiple of
a single speed CDROM and convert to KB/sec.
No complaints from: sos
Reviewed by: ken
Approved by: re
MFC after: 1 day
|
|
|
|
|
| |
PR: kern/45494
Approved by: re
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This code allows a user program to enable target mode on a SIM and
then emulate any number of devices (disks, tape drives, etc.) All
decisions about device behavior (UA, CA, inquiry response) are left
to the usermode program and the kernel driver is merely a conduit
for CCBs. This enables multiple concurrent target emulators, each
using its own backing store and IO model.
Also included is a user program that emulates a disk (RBC) using a
file as a backing store. This provides functionality similar to
md(4) at the CAM layer.
Code has been tested on ahc(4) and should also work on isp(4) (and
other SIMs that gain target mode support). It is a complete rewrite
of /sys/cam/scsi_target* and /usr/share/examples/scsi_target.
Design, comments from: gibbs
Supported by: Cryptography Research
Approved by: re
|
|
|
|
| |
Reviewed by: ken
|
|
|
|
| |
Reviewed by: ken a while ago.
|
|
|
|
| |
Verified by: md5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Change atapi-cd ioctls to use the same units.
* Change burncd, cdcontrol to convert CDROM speed to KB/sec before
calling the ioctl. Add a "max" speed option for their command lines.
This change does not break ABI but does change the units passed through
the ioctl so 3rd party software that uses cdrio.h will have to convert
(most likely by multiplying CDROM speed by 177 to get KB/s).
PR: kern/36845
Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls)
Reviewed by: sos, ken
MFC after: 1 month
|
|
|
|
|
|
| |
Requested by: Most developers
Apologies to: Most developers, with special note to <ken@kdm.org>
Collabroation in the future with: Kenneth D. Merry <ken@kdm.org>
|
|
|
|
|
|
|
| |
of the 6 byte ones. This helps with using a IDE cdrom behind a USB
interface.
PR: kern/43885
|
|
|
|
|
|
|
| |
Submitted by: Keith White <kwhite@uottawa.ca>
PR: kern/41010
MFC after: 1 week
|
|
|
|
| |
show up in /dev.
|
| |
|
|
|
|
|
|
|
|
|
| |
structure. This has been broken since 1998, but probably hasn't been
noticed because it takes a read/write of 64K blocks (32MB with 512 byte
blocks) to trigger using the 12 byte read/write CDB in scsi_read_write().
Submitted by: "Moore, Eric Dean" <emoore@lsil.com>
MFC after: 3 days
|
|
|
|
|
|
|
| |
note to self:
Never check block-size sensitive patches on Sun compatible CD drives.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SCSI disks are too square pegs for the round holes in both of these.
And since atapi-cd has clearly shown that there are better acccess
models for CD media than trying to pretend to be a classical disk,
we stop the masquerade rather than patch up the costume.
But do implement the DIOCGMEDIASIZE and DIOCGSECTORSIZE so it will
be possible to manually attach to GEOM, should some the need arise.
Ideally, this driver should do media-detection and call make_dev()
when a CD is inserted and destroy_dev() when it is removed, this
would allow our future devd(8) to automount etc etc but coding that
takes SCSI-clue beyond anything I posses.
Tested on: sparc64
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
| |
Submitted by: Olexander Kunitsa <kunia@istc.kiev.ua>
MFC after: 3 days
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
| |
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
|
| |
|
|
|
|
| |
The notion that you must "always" have a delay is at best misinformed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and predictable way, and I apologize if I have gotten it wrong anywhere,
getting prior review on a patch like this is not feasible, considering
the number of people involved and hardware availability etc.)
If struct disklabel is the messenger: kill the messenger.
Inside struct disk we had a struct disklabel which disk drivers used to
communicate certain metrics to the disklayer above (GEOM or the disk
mini-layer). This commit changes this communication to use four
explicit fields instead.
Amongst the benefits is that the fields do not get overwritten by
wrong or bogus on-disk disklabels.
Once that is clear, <sys/disk.h> which is included in the drivers
no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in,
the few places that needs them, have gotten explicit #includes for
them.
The disklabel inside struct disk is now only for internal use in
the disk mini-layer, so instead of embedding it, we malloc it as
we need it.
This concludes (modulus any mistakes) the series of disklabel related
commits.
I belive it all amounts to a NOP for all the rest of you :-)
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
|
|
| |
where we can find it.
Don't call dkpart() just to print the result, it is constant.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
| |
kern.cam.scsi_delay tunable/sysctl.
Reviewed by: mdodd, njl
|
| |
|
|
|
|
|
| |
100ths of ns. This should correct a problem with camcontrol "ignoring"
requests to negotiate to slower speeds.
|
| |
|
| |
|
|
|
|
|
|
| |
is more obvious.
Obtained from: gibbs/ken
|
|
|
|
|
|
|
|
|
| |
* Only update cdb in place if not CDB_POINTER
* Correctly check for QFRZ before restarting CCB
* More accurate printf message
* style(9) changes at end
Patch tested successfully on Maxtor 4 G120J6 GAK8.
|
|
|
|
|
| |
PR: kern/39809
Approved by: gibbs
|
|
|
|
|
| |
PR: kern/39809
Approved by: gibbs
|
|
|
|
| |
PR: misc/39528
|
|
|
|
| |
would hide problems (like Selection Timeout).
|
| |
|
|
|
|
|
|
|
|
| |
Include PPR option bits defined in SPI4.
scsi_iu.h:
Add data structures releated to parallel SCSI information units
for use in SPI4 packetized protocol.
|
| |
|
|
|
|
| |
X-MFC after: immediate w/ release eng approval.
|
|
|
|
|
| |
Note that even with the quirk entry the reader typically only works if
the USB device is recognized by UHCI instead of the generic OHCI driver.
|
|
|
|
| |
MFC after: 1 day
|