| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
cases look the same.
|
|
|
|
|
|
| |
Ditto for ST_USER_DENSITY and ST_QUIRK_DENSITY. Thus the origin of the
value stored in the mode is irrelevant. Just use two flags
(ST_MODE_BLKSIZE and ST_MODE_DENSITY) instead of the existing four.
|
|
|
|
|
| |
a non-zero value of blksize in the quirkdata. So just check for non-zero
value of blksize, as is already done for density.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
found obscure. Repair a broken WangTEK 5150ES quirks entry that
apparently suffered some damage when imported in 1995. It never made
NetBSD/FreeBSD quirk lists at all.
Some whitespace tweaking to make everything line up.
|
|
|
|
| |
devices with quirks.
|
|
|
|
| |
their "CIPHER ST150S (old drive)" devices back.
|
| |
|
|
|
|
|
| |
So fold 'modeflags' field of st_softc into 'flags' field of same. Nuke
a bunch of dubious/obvious comments.
|
|
|
|
|
| |
Nuke pointless 'quirkdata' pointer in st_softc. We use the data once at
attach time and don't need to remember where we got it from.
|
|
|
|
| |
store the discovered quirks in st_softc's 'quirks' field.
|
|
|
|
| |
the 'quirks' field of struct quirksdata.
|
|
|
|
|
| |
Reformat quirks array the way the autoindenter likes it to minimize
the effort needed to keep diffs short.
|
|
|
|
|
|
|
|
| |
to a logical conclusion. Start cleaning up the left overs.
First, delete the unused quirk ST_Q_BLKSIZE and simplify the one
condition referencing it in light of the fact that !ST_Q_BLKSIZE would
always be true.
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
now unneeded version_to_spc() mapping array, a duplicate #define
and a couple of magic numbers. Toss in some comments for future
generations of spelunkers.
Makes it possible to check for specific SPC versions when new
features or eliminated features require such a check.
No intentional functional change.
|
|
|
|
|
|
|
|
| |
Some cd/sd/safte/ses devices will now be correctly identified as
SCSI-3 and gain all the advantages associated with that lofty
status. e.g. READ CAP 16, REPORT LUNS.
ok deraadt@
|
|
|
|
|
| |
"< 2 || > 2". Step towards allowing SCSISPC() to be updated to return
actual SPC values.
|
|
|
|
| |
of SCSISPC() when checking the values of the INQUIRY version field.
|
|
|
|
|
|
|
|
|
|
|
|
| |
scsi_probe() and make scsi_probe_bus(), scsi_probe_target() and
scsi_probe_lun() simple wrappers around scsi_probe().
Abstract the determination of which luns to probe into a separate
function. Thus eliminating the need to remove/add lun 0 link while
probing devices modern enough to support REPORTLUNS. Which means the
lun 0 link is no longer in different positions in the scsi_link list
for such devices compared to older devices which are blindly probed
until an invalid LUN is encountered.
|
|
|
|
|
|
|
| |
scsi_detach(), scsi_detach_target() and scsi_detach_lun() become
simple wrappers of scsi_detach() invocations.
No intentional functional change.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
version_to_spc() to map the formerly reserved value 0x07 in the
INQUIRY version field to 5 (a.k.a. SPC-5), instead of 0 (a.k.a. device
does not claim support for any SPC version).
Tweak comment for 0x03 mapping to note it means compliance to SPC, not
SPC-3. Tweak comment for 0x06 mappoing to specify the ANSI INCITS
513-2005 that documents SPC-4.
|
|
|
|
|
| |
pretended to care. So just make in a void, and explicitly return 0 in
the appropriate case in scsi_probe().
|
| |
|
| |
|
|
|
|
|
|
|
| |
for each target:lun. Just travese the SLIST once taking care of relevant
scsi_link's as they are encountered.
ok jmatthew@
|
|
|
|
|
| |
adapter_link->adapter_buswidth, which supplied the value for
sc_buswidth and is never changed.
|
|
|
|
| |
variable names into a consistant idiom.
|
|
|
|
| |
declarations.
|
| |
|
| |
|
|
|
|
|
|
|
| |
instead
From Pamela Mosiejczuk, many thanks!
OK phessler@ deraadt@
|
|
|
|
| |
Prodded by guenther@
|
|
|
|
|
|
|
|
| |
forcibly set to a value. Make sure that in all those cases the B_ERROR
flag is cleared (if b_error is being set to 0) or set (if b_error is
being set to non-zero) appropriately.
ok dlg@ jmatthew@
|
|
|
|
|
|
| |
id after that, so it seems like a silly reason to reject a target.
ok dlg@ deraadt@
|
|
|
|
|
|
| |
to his array rather than just 2.
ok dlg@
|
|
|
|
| |
ok krw@
|
|
|
|
| |
ok deraadt@ krw@
|
|
|
|
|
|
| |
Diff from Carlos Cardenas, thanks!
ok krw@
|
| |
|
|
|
|
|
|
|
|
|
| |
Don't skip the cache flush until the last opening of the device is
closed. Otherwise, when umounting a writable partition while a different
partition is still mounted read-only, the necessary disk flush may be
delayed for a very long time.
ok krw@ deraadt@
|
|
|
|
|
|
|
| |
Currently implemented for wd and sd.
Initially ported from netbsd by pedro@
ok deraadt@
|
|
|
|
|
|
|
|
| |
history, nuke all mentions of XS_NO_CCB and the #define.
2006 - 2017. R.I.P.
ok kettenis@ inferred ok dlg@
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
| |
the random subsystem as entropy. This value is pretty much unknown,
and anyways our entropy input ring does not saturate from knowns.
ok mikeb djm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.
most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.
the manpage and subr_pool.c bits i did myself.
ok tedu@ jmatthew@
@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);
|
|
|
|
| |
ok deraadt@ guenther@
|