Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
sdattach() has the flag SCSI_IGNORE_MEDIA_CHANGE set. This was not
true for devices with the quirk SDEV_NOSTARTUNIT, such as some umass
devices.
This fixes the display of the disk parameters for any loaded media.
Previously the displayed parameters would show 0 size, 0 sectors and a
faked number of cylinders, etc. By ignoring the error generated by
devices trying to tell us the media may have changed since the last
command the SCSI command completes correctly and valid values are
obtained/displayed. We are interested in the current values and
unconcerned about any previous ones.
Tested by drahn@.
|
|
krw@ ok
|
|
|
|
|
|
|
|
is trying to bring in.
1) Change name of SDEV_NOCDB6 to SDEV_ONLYBIG to align it with the
same quirk in NetBSD, and make it more clear what it is trying to do.
i.e. force the use of READ_BIG/WRITE_BIG commands, not suppress all
use of 6 byte CDB's.
2) Check SDEV_ONLYBIG in cd.c as well as sd.c. i.e. both places where
a choice is made to use the 6 or 10 byte versions of READ/WRITE.
3) Actually make use of the ADEV_NOTUR (No TEST UNIT READY) quirk to
suppress the emission of TEST UNIT READY commands.
4) Add some explanatory comments from NetBSD to scsiconf.h so that the
use of the quirks is made clear.
ok miod@ tdeval@ nate@
|
|
Fixes frantzen@'s pentax digital camera.
Suggested by Costa.
ok csapuntz@ frantzen@.
|
|
strncpy still present for manipulating d_packname/d_typename.
ok deraadt@.
|
|
string.
Ensure that all of d_packname is used by not null-terminating string
that is put in it.
Suggestions and motivation to remove strncpy() from deraadt@.
ok deraadt@ tedu@.
|
|
Almost identical to a previously submitted diff from tedu@.
ok tedu@ tdeval@
|
|
and should not be created or used as such.
This fixes some instances of both behaviours, and sets the stage for some
strcpy -> strncpy fixup.
ok tdeval@ millert@ deraadt@
|
|
|
|
currently valid values (0 - 0xff) to be used in mt(1). Add sanity
check to catch negative values.
Minor cleanup so mt_count values are stored in daddr_t variables and
not ints. Eliminate unnecessary cast of mt_op, since it is already a
shot. Leave possible move of mt_count to int32_t rather than daddr_t
to post-3.3.
Problem found, and original diff by Joseph Bender.
costa@ henning@ tdeval@ ok
|
|
ok deraadt@ tdeval@
|
|
(and right before the leadout track in the case of the last track). Some
CDROM's are evidentally picky about being asked to play the first frame
of the leadout.
|
|
|
|
Use increased retries number and don't ignore SCSI_IGNORE_NOT_READY
when call scsi_test_unit_ready() for cd-rom, this makes system wait
if drive is loading media.
Tested by millert@ and fgsch@; some input and ok from krw@.
Problem reported by The lord of the CD-writers
Igor Grabin <violent@death.kiev.ua>.
|
|
1) Correctly define MODE_SENSE_BIG as 0x5a, not 0x54.
2) Delete duplicate #define's of some opcodes in scsi_disk.h.
3) Delete multiple #define's for same opcode in scsi_disk.h.
4) Replace uses of deleted opcodes in umass.c with remaining ones.
ok millert@ tdeval@
|
|
|
|
EOL set to post 3.3
|