Age | Commit message (Collapse) | Author |
|
More informative failure message and silence "already open" message.
ok krw@
|
|
More informative failure message and silence "already open" message.
ok krw@
|
|
NetBSD. Try to limit special handling of sense errors in sd and st to
a minimum.
ok marco@
|
|
|
|
EJUSTRETURN and ERESTART instead. Delete unused SCSIRET_RETRY define.
From NetBSD.
ok marco@
|
|
ok miod@ tdeval@ marco@ krw@
|
|
ok millert@ deraadt@.
|
|
make sync'ing with NetBSD easier. NetBSD has moved on, most of these
sections have not.
ok marco@ deraadt@ grange@ csapuntz@
|
|
chunk of code. It was never executed unless you were debugging a
mvmex8k 'vs' device.
ok miod@ (mvmex8k bits) marco@ deraadt@
|
|
SC_DEBUG() spacing tweaks.
ok deraadt@
|
|
will now display correct error value.
Spotted in SCSIDEBUG output from Adrian Close's bizarre USB device.
ok millert@ deraadt@ marco@.
|
|
|
|
reverting to a single (short) INQUIRY command during probe. Compensate in siop
by trying PPR on all targets on SCSI-3 buses and falling back to WDTR/SDTR if
PPR rejected.
Problem found by mickey@. Tested on a wide variety of devices by Marco.
ok marco@ deraadt@.
|
|
double INQURY commands on LUNs that will be skipped anyway.
From Marco Peereboom.
ok deraadt@.
|
|
instances of bad LUNs and add SCSIFORCELUN_BUSES and
SCSIFORCELUN_TARGETS options.
ok miod@ deraadt@. Tested in the Marco Peereboom torture chamber.
|
|
UMASS_QUIRK_FORCE_SHORT_INQUIRY. Fixes a bunch of USB devices. Based
on work by Mycroft in NetBSD.
ok tdeval@ deraadt@.
|
|
of fields in the scsi_xfer after scsi_done() could have been called is
bad.
cdrecord can now safely burn cd's at high speeds.
Found by grange@, original diff by costa@, cleaned up by grange@ and
further polished by me following input from deraadt@.
ok grange@ costa@ deraadt@.
|
|
leakage from one use to the next. There is no such thing as too much
paranoia.
ok deraadt@.
|
|
looked at by various, testing henning@ mcbride@ dan weeks
mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
|
|
information is available to make the new lun validation logic work.
i.e. don't find phantom luns just because the user asks about them.
Also ensure the lun value given does not exceed the maximum valid lun
for a bus, rather than assuming the maximum valid lun is 7.
ok tdeval@ deraadt@.
|
|
|
|
From art@
|
|
looks ok deraadt@, mickey@, krw@ and art@(but I hate it)
|
|
sense information when attempting to discover the disk size.
USB 6-in-1 readers have a bunch of LUNs and otherwise produce many
'Medium Not Present' details everytime they are plugged in. Noticed
by grange@.
Requested by and ok deraadt@.
|
|
negative number of sectors for very large (i.e. RAID) disks. Noticed
by Marco Peereboom.
ok deraadt@.
|
|
addition to device targets and luns.
ok deraadt@.
|
|
must still do TUR on mvme68k & mvme88k ssh(4) driver
ok miod krw
|
|
it doesn't grok luns then stop probing.
Speeds up the probe of an empty scsi bus by approx. 30 seconds.
From Marco Peereboom.
Tested by Marco Peereboom, millert@, miod@, Diana Eichart, and a host of
anonymous snapshot users.
ok deraadt@.
|
|
ok tdeval@.
|
|
|
|
moreluns field in scsi_link structure. Instead, treat an INQUIRY
result that duplicates the INQUIRY result of LUN 0 as proof the LUN
does not exist. Compensate for lack of SDEV_NOLUNS where necessary by
setting sc_link->luns to 1, which has the same effect. From Marco
Peereboom.
Don't issue Test Unit Ready command before INQUIRY command - not
necessary and potentially harmful to devices with ADEV_NOTUR quirk
since quirks have not been set yet. From mycroft@NetBSD
ok deraadt@, mvme* changes by miod@.
|
|
ok tdeval@ krw@
|
|
Clarify some logic and make type usage more consistant.
ok tdeval@.
|
|
and pointed out by Nate@. Fixes some <, , > displays for devices that
were not filling the INQUIRY data in correctly. Silences INQUIRY
commands that fail during probe. Treats SID_QUAL_LU_OFFLINE results
the same as SID_QUAL_BAD_LU. Eliminate special treatment for DEC TK30
and DEC TK50 devices.
ok tdeval@.
|
|
sdclose() unless they identified themselves as removable.
ok deraadt@.
|
|
numbers; fix passing a NULL to %s under some circumstances; fix the
bit index mask; etc.
No change in output.
ok deraadt@.
|
|
to built-ins, so eventually we will have one version of these files.
Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h
and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes.
okay millert@, drahn@, miod@.
|
|
number. Same change as was made to scsi_base.c a few days ago.
ok deraadt@.
|
|
suffered a reset condition. Newer devices return a variety of ASCQ
values now (0x00 -> 0x07) rather than just 0x00. Such commands will
now be retried rather than returning EIO.
Started off when Marco Peereboom's SCSI analyzer saw some ASC/ASCQ
results of 0x29/0x02.
ok miod@.
|
|
non-SCSITERSE) kernels. Brings the list up to SCSI-3.
From Marco Peereboom (marco at peereboom dot us).
ok deraadt@.
|
|
the error to be emitted.
ok miod@.
|
|
(mvme68k/mvme88k) vs.c and (vax) if_le.c ok miod@
isakmpd ones ok ho@
|
|
|
|
|
|
There are more occurences hiding in binutils, lynx and afs but I am too
lazy to report them upstream at the moment.
|
|
I've skipped the GNU stuff for now. From Patrick Latifi.
|
|
|
|
key case statement and let the common code after the case do the right
thing.
Return EINVAL for sense key SKEY_ILLEGAL_REQUEST whether SCSI_SILENT
is set or not.
ok tdeval@ nate@
|
|
1) Ensuring that both sd_scsi.c and sd_atapi.c report a device as
offline when its disksize cannot be determined.
2) Ensuring blksize is always non-zero, with a default value of 512.
3) Eliminating a couple of unneeded 'sectors' variables, which makes
the code easier for me to read if nothing else.
The bug was introduced when sd_atapi.c was changed to allow
'incomplete' implementations to be reported as online. REALLY
incomplete implementations (i.e. not even the disksize can be
determined) would be reported online with a blksize of zero.
Also fix a couple of knf nits in Mickey's last commit, and add another
check for an rpm of 0.
ok (pre-Mickey diffs) tdeval@ marc@ frantzen@
|
|
derived from pr2815 from Marco Peereboom
krw@ deraadt@ ok
|