Age | Commit message (Collapse) | Author |
|
|
|
|
|
sd does. Prevents spurious label information from being seen on
devices that return NOT READY/UNABLE TO RECOVER TABLE-OF-CONTENTS
error (or other sense errors) for blank media. Burning cd's still
works.
ok marco@ dlg@ fgsch@ deraadt@
|
|
ILLEGAL REQUEST is correctly reported for blank media, as an
informative FreeBSD comment pointed out. Ensure the returned table of
contents is always initialized to zero. Call readdisklabel with
spoofonly = 1 when no data tracks are found.
Don't try to read the DOS label from the device if spoofonly is 1.
Only done for amd64 here. More archs to follow.
Eliminates scsi error messages when attempting to open a cd containing
blank media, as pointed out by Michael Coulter.
ok deraadt@
|
|
calculations. Same as sd.c r1.94.
|
|
fix devices not supporting TEST UNIT READY.
|
|
functional change.
ok dlg@
|
|
fake a geometry. Page 4 info does not get used for size information.
Eliminate now unused union scsi_disk_pages.
ok marco@ mickey@ pre-lock.
|
|
headers; } to just union scsi_mode_sense_buf {}. No functional change.
ok marco@
|
|
Some blow up if buffer length is not 0. Just fake geometry for all
UMASS devices since it's almost always fictitious anyway. One step on
the road to eliminate geometry entirely.
Fixes Ed Wandasiewicz's 2nd gen iPod mini and Sebastiaan Indesteege's
UBest Technology device.
ok marco@
|
|
before free()'ing buf in sd_get_parms(). Tweak code so there is only
one free(buf, ...) to worry about.
ok deraadt@.
|
|
or scsi_mode_sense_big(), use as much of it as is allowed. Don't justi
mask off the higher bits and possibly leave yourself with 0 space.
Fixes problem aoyama@ found on luna88k tape drive.
ok deraadt@.
|
|
struct scsi_mode_sense_buf to 256, a value which doesn't fit in the 1
byte length field of a scsi command.
Found by aoyama@ on luna88k.
Suggested by miod@. ok deraadt@.
|
|
SCSI_IGNORE_ILLEGAL_REQUEST and SCSI_IGNORE_MEDIA_CHANGE flags to
scsi_test_unit_ready() and scsi_start() during sdopen(). Re-enables
use of devices that don't support START_STOP or TEST_UNIT_READY
commands.
Noted by and fix tested by Jason Crawford on VMWare disks.
ok dlg@ henning@, supportive comments from miod@.
|
|
space we want to store it in. thanks to mtu for providing access to
hardware for this.
ok deraadt@
|
|
ok deraadt@
|
|
unwanted side effects, eg, disabling both fc ports and powering the disk
down. so remove this knob for now.
ok deraadt@
|
|
stack into malloc'd memory.
ok deraadt@
|
|
Use consistant scsi_autoconf and SCSI_SILENT flags in
scsi_test_unit()/scsi_start() pairs.
Fixes some hppa, vax, sparc systems that do not spin up disks
automatically. Keeps USB card readers and such reasonably quiet.
Noted by millert@ (hppa), henning@ (sparc) and hshoexer@ (vax).
ok deraadt@
|
|
ok dlg@ krw@ deraadt@
|
|
|
|
|
|
|
|
have. Some devices return four bytes less information than requested
for the PAGE_RIGID_GEOMETRY page. Put the two together and older
Conner drives don't work because we rejected the short page and asked
for the PAGE_FLEX_GEOMETY page. Noted by hshoexer@ and kettenis@.
Also should fix the problems with a device miod@ reported that did a
similar short PAGE_FLEX_GEOMETRY.
ok deraadt@
|
|
device that returns any other value via READ CAPACITY or MODE SENSE
will be marked 'drive offline'. Prevents divide by zero when
calculating disk size in MB, amoung other interesting possibilities.
ok mickey@ dlg@ deraadt@ millert@ marco@
|
|
necessary for the blinkenlight magic.
Also removed some XXX cruft that was misleading.
|
|
code to do the actual blink is ifdefed out till marco can figure out what
im doing wrong.
|
|
for a particular target
|
|
ok marco@ krw@
|
|
ensure they are the ones requested. No functional change unless
garbage was being returned.
ok marco@
|
|
config
ok deraadt@ marco@
|
|
ok deraadt@
|
|
ok tdeval@ deraadt@
|
|
ok marco@ deraadt@
|
|
monitoring the fans, powersupplies, doorlock, and alarm as well the temps.
ok deraadt@ marco@
|
|
union declaration to allow pointers to individual page types. Simplify
sd.c code by using individual page type pointers. No functional
change.
ok tdeval@
|
|
|
|
forever on mp kernels
problem reported by matthieu baptiste
|
|
|
|
ok marco@
|
|
|
|
|
|
fill in the rpm fields.
your call deraadt@
|
|
is window dressing.
zap it deraadt@
|
|
in a kernel thread. very similair to the same change in ses.c.
ok marco@ beck@ deraadt@
|
|
shorter and less prone to mistakes
ok marco@
|
|
|
|
for and ok marco@
|
|
|
|
respectively
ok krw@ deraadt@ marco@
|