Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-05-21 | replace lockmgr with rwlock. | David Gwynne | |
2006-05-18 | paramter -> parameter | Miod Vallat | |
2006-05-18 | Test the state of a disk *after* spinning it up and not before. This | Kenneth R Westerback | |
prevents the issuing of sizing inquiries to non-existant or non-responsive devices like empty slots on a USB card reader. Also try to avoid *extremely* unlikely loop of scsi_start() commands, by not using sd_interpret_sense() until after the disk is spinning. ok dlg@ | |||
2006-05-13 | And the fallout from Manuel Pata's USB reader rumbles on ... | Kenneth R Westerback | |
Fix the display of the device info for umass devices at lun 0 by passing the correct inquiry data to config_attach. i.e. not the inquiry data for lun 1, which we gratuitously probe to prevent USB card readers from 'helpfully' lying about who is where, but the inquiry data for lun 0 we have saved in sc_link->inqdata. | |||
2006-05-13 | When SCSIDEBUG'ing, display the return value of scsi_interpret_sense() | Kenneth R Westerback | |
in hex. This makes it consistant with the display of the same value in other messages. | |||
2006-05-11 | Zap trailing whitespace. | Kenneth R Westerback | |
2006-05-09 | make sensor names look more normal; ok dlg | Theo de Raadt | |
2006-05-07 | If a device says a MODE SENSE command worked fine, do *not* try a MODE | Kenneth R Westerback | |
SENSE BIG command even if no page data was returned. Just accept the fact that the device does not have any such page data. This is more in line with the spec, and unbreaks devices (like the Neodio 8-in-1 USB Card Reader donated by Manuel Pata) which freak out when getting a MODE SENSE BIG. Should not break any 'working' device. ok pedro@ dlg@ marco@ 'Looks correct.' miod@ | |||
2006-05-07 | Zap a bunch of trailing whitespace. | Kenneth R Westerback | |
2006-04-20 | Fix various printf() issues: too many arguments, not enough arguments, argument | Miod Vallat | |
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@ | |||
2006-03-15 | Nuke dk_establish(), no longer used. | Miod Vallat | |
2006-03-05 | Remove NetBSDism NRND. Pointed out by Mickey. | Kenneth R Westerback | |
ok miod@ marco@ | |||
2006-03-04 | Typos grab bag of the month, eyeballed by jmc@ | Miod Vallat | |
2006-02-06 | typos from alexey dobriyan; | Jason McIntyre | |
2006-01-21 | Invoke disk_detach() and related cleanup work in detach(), rather than | Miod Vallat | |
zeroref() - just to be on the safe side, should we mess up our ref count. | |||
2006-01-19 | Replace SENSOR_ADD() macro with a pair of functions | Alexander Yurchenko | |
sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@ | |||
2006-01-18 | Don't index before the start of the sc_link array if scsi_probe_bus() | Kenneth R Westerback | |
is called with a target of -1 and a valid lun. Spotted by Miod. ok miod@ | |||
2006-01-17 | Use strchr() from libkern instead of rolling our own. | Miod Vallat | |
2006-01-17 | Need to device_unreg() the implicit device_ref() done by cdlookup() in | Miod Vallat | |
cdminphys(). | |||
2006-01-12 | Don't populate the fabricated disklabel's partition info from track | Kenneth R Westerback | |
information in the TOC. The partition info is just overwritten or rendered incomplete by readdisklabel(). Just examine the TOC to determine if the cd is audio only, i.e. it has a valid TOC but no data tracks. In this case don't call readdisklabel(). Much simpler code. No functional change for single data track CD's like the install media. ok pedro@. | |||
2006-01-11 | dont print anything if we're unable to read the status page | David Gwynne | |
requested by deraadt@ | |||
2006-01-08 | i cant spell my own name. | David Gwynne | |
noticed by miod@ | |||
2005-12-25 | Cleanup/fix cdgetdisklabel() by | Kenneth R Westerback | |
1) Using cd_load_toc() instead of replicating code. 2) Using struct cd_toc and betoh32() like other parts of cd.c. 3) Restoring pre-Sept. 26 behaviour of trying to read usable disklabel info if there is no TOC. i.e. avoid readdisklabel() only when it is an audio-only CD. Stop abusing spoofonly. Tested by mjc@ | |||
2005-12-23 | Make cd_load_toc() take an address mode parameter, clean up a bit. | Kenneth R Westerback | |
Add a check for ending_track < starting_track before calculating size of TOC to read. Tested by mjc@ | |||
2005-12-22 | Move a struct cd_toc (800 bytes) from the stack to malloc'ed memory. | Kenneth R Westerback | |
bzero() all malloc'ed cd_toc structs because cd_read_toc() will only zero as much as it is trying to read. malloc M_TEMP memory instead of M_DEVBUF memory for the cd_toc structs. ok deraadt@ | |||
2005-12-22 | Initialize data_track before a 'goto done;' could lead to it being | Kenneth R Westerback | |
used. | |||
2005-12-17 | Kill unreachable code. Found by lint. | Kenneth R Westerback | |
ok kettenis@ deraadt@ pedro@ miod@ | |||
2005-12-15 | A sanity check for an unsigned variable being < 0 after a subtraction | Kenneth R Westerback | |
is not useful. Check the value about to be subtracted. Spotted by lint. | |||
2005-12-10 | in ansi c, bitfields must be done against int, unsigned int, or _Bool. | Theo de Raadt | |
so we must start to use u_int; ok cloder | |||
2005-12-10 | in ansi c, bitfields must be done against int, unsigned int, or _Bool. | Theo de Raadt | |
so we must start to use u_int; ok cloder | |||
2005-12-08 | Don't panic for pathological i/o sizes unless minphys() really is | Kenneth R Westerback | |
broken. Eliminate an unneeded variable and potential conversion issues in SCIOCCOMMAND code before calling physio. Similar to what NetBSD does. Fixes cdda2wav vs "Billie Holiday - Songs for Distingue Lovers" problem noted by Alexandre Ratchov. Tested by Alexandre. ok marco@ pedro@ deraadt@ mickey@ | |||
2005-12-02 | Remove one tab that cause a line to overflow. No functional change. | Marco Peereboom | |
2005-12-02 | Missing 'break;'. Spotted by lint. | Kenneth R Westerback | |
ok dlg@ | |||
2005-11-28 | fix month-old breakage found by genududes (after henning's breakage) | Michael Shalayeff | |
2005-11-19 | Remove unnecessary lockmgr() archaism that was costing too much in terms | Pedro Martelletto | |
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks. | |||
2005-11-17 | Don't forget to device_unref() in sdclose() if sdlock() fails; ok krw@ | Miod Vallat | |
2005-11-17 | Use sectors as the size units for the RAW_PART (i.e. 'c') partition in | Kenneth R Westerback | |
spoofed sd disklabels. Sectors are the partition size units used and documented everywhere else in the tree. sd ensures a sector will always be a multiple of 512. Fixes disklabel(8) error messages and partition size display for sd devices that have no OpenBSD disklabel and a sectorsize > 512. Noted by Robert Szasz on his Sony Hi-MD device. ok pedro@ marco@ | |||
2005-11-13 | Allow removable disks to be spun up if they ask for initialization | Kenneth R Westerback | |
after being opened. Use SC_DEBUG() to suppress some verbiage during spin up. Return actual errors encountered during attempt to spin up, rather than always returning EIO. ok dlg@ | |||
2005-11-13 | ATAPI Tape drives need 6 byte MODE SENSE commands according to at | Kenneth R Westerback | |
least one spec. Unlike other ATAPI devices. Fixes PR #4611. | |||
2005-11-13 | Use SCSI_DELAY only once. Document it. Default to no delay. | Kenneth R Westerback | |
Fixes two second system 'freeze' when umass device plugged in. Speeds up boot by not waiting for a minimum of 2 seconds at each scsi bus. ok jmc@ pedro@ deraadt@ | |||
2005-11-13 | Use scsi_delay() instead of delay() when waiting for scsi disk to | Kenneth R Westerback | |
become ready. Make verbiage SC_DEBUG(). ok dlg@ | |||
2005-11-13 | lock accesses to the buffer so that it wont get confused between the | David Gwynne | |
multiple processes using it | |||
2005-11-13 | lock updates to the buffer with the enclosure status in it so that one | David Gwynne | |
process cant read from it while another one is fetching it from the scsi device. looks ok krw@ | |||
2005-11-13 | if the particular ses device has no slots or sensors to handle, then free | David Gwynne | |
all the resources. | |||
2005-11-12 | there are two things that safte does: update sensors and blink lights. if | David Gwynne | |
attach figures out that we cant do either of them, then free up all the resources. | |||
2005-11-12 | clean up unused includes | David Gwynne | |
2005-11-12 | remove the ses kthread goop and use the sensor kthread for updates instead | David Gwynne | |
tested by deraadt@ | |||
2005-11-11 | include sys/device.h. builds on sparc. dlg@ ok. | Federico G. Schwindt | |
2005-11-10 | remove half the includes since they seem to be unnecessary. | David Gwynne | |
2005-11-10 | i am a stupid head. unbreak kernels that done have the bio(4) device. | David Gwynne | |
reported and fixed by Michael Knudsen. |