Age | Commit message (Collapse) | Author |
|
Requested and ok mickey@
|
|
Requested mickey@
|
|
|
|
|
|
ok krw@
|
|
ok deraadt@ tdeval@ henning@ marco@
|
|
|
|
Eliminate some duplicate structures and defines along the way. SCSI CD
drives will now pay attention to the 'flags' parameter for MODE SENSE
and MODE SELECT commands. No other functional change.
ok tdeval@
|
|
quiet if raw partition access tried. Be more careful with
SDEV_MEDIA_LOADED. Inspired by some NetBSD changes.
ok marco@
|
|
condition is going to clear up, which speeds up boot by avoiding
delays in disk matching. Return ENODEV if media is not present, which
avoids trying to spin up disks that are not present. Use ENODEV in
amd64/i386 dkcsum.c to filter failure reports.
Mostly from NetBSD.
ok marco@
|
|
|
|
support, don't penalize devices that don't support it. May help some
usb devices.
ok marco@
|
|
report 0xffffffff and print a message. READ CAPACITY(16) is needed to
get the actual size in this case.
ok tdeval@ (a while ago) marco@
|
|
Mainly remove space between locators parens, replace spaces with tabs
where appropriate and consistently align dependencies.
|
|
exactly as is done in sdopen(). This improves the chances of getting
valid geometry/size and avoiding 'drive offline' errors, without
subjecting the device to anything it won't see anyway.
No impact on devices that already work. Fixes problem with Jim Rees'
Hitachi DK23DA in an Archos Multimedia Jukebox. Without adding quirks!
Tested by Jim Rees. ok marco@.
|
|
|
|
no change in compiler assembly output.
|
|
command information unit 'Task Management Flags' defines. From FreeBSD
with a few tweaks. For ahd.
ok tdeval@ marco@.
|
|
submitted via ioctl. Eliminate scsi_do_safeioctl(), thus permitting
ch, ss and st devices to submit SCSI commands. Return EPERM rather
than EBADF when permissions are inadequate.
Allows more programs to run with fewer permissions. Problem diagnosed
by Nikolay Sturm in mplayer port.
Tested by Nikolay, ok deraadt@.
|
|
to eliminate some magic numbers.
ok marco@
|
|
(1024).' errors in restore(1).
Check for SDEV_OPEN in sc_link->flags (where it lives) rather than
sense->flags (where it doesn't).
Problem noted by John Danks on misc@ and reinforced by Otto & Hugh.
ok marco@ hugh@.
|
|
|
|
the tape device stuffed with data and therefore it rewinds less often to reposition.
ok krw@
|
|
in the tree is #ifdef'd out and is fundamentally wrong anyway - it
tries to force *all* devices to SCSI-2. Also recent SCSI specs seem to
have marked the command as obsolete. Bonus - eliminates another
undocumented option (SCSI_2_DEF).
Found in a list of unused kernel functions posted to tech-kern@netbsd
by Krister Walfridsson in 2002.
ok marco@ tdeval@
|
|
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@.
|