Commit Graph

576 Commits

Author SHA1 Message Date
Alexander V. Chernikov
421cc64b84 Add myself.
Approved by:       kib (mentor)
2011-10-06 15:10:48 +00:00
Kenneth D. Merry
1cc052e80f Add descriptor sense support to CAM, and honor sense residuals properly in
CAM.

Desriptor sense is a new sense data format that originated in SPC-3.  Among
other things, it allows for an 8-byte info field, which is necessary to
pass back block numbers larger than 4 bytes.

This change adds a number of new functions to scsi_all.c (and therefore
libcam) that abstract out most access to sense data.

This includes a bump of CAM_VERSION, because the CCB ABI has changed.
Userland programs that use the CAM pass(4) driver will need to be
recompiled.

camcontrol.c:	Change uses of scsi_extract_sense() to use
		scsi_extract_sense_len().

		Use scsi_get_sks() instead of accessing sense key specific
		data directly.

scsi_modes:	Update the control mode page to the latest version (SPC-4).

scsi_cmds.c,
scsi_target.c:	Change references to struct scsi_sense_data to struct
		scsi_sense_data_fixed.  This should be changed to allow the
		user to specify fixed or descriptor sense, and then use
		scsi_set_sense_data() to build the sense data.

ps3cdrom.c:	Use scsi_set_sense_data() instead of setting sense data
		manually.

cam_periph.c:	Use scsi_extract_sense_len() instead of using
		scsi_extract_sense() or accessing sense data directly.

cam_ccb.h:	Bump the CAM_VERSION from 0x15 to 0x16.  The change of
		struct scsi_sense_data from 32 to 252 bytes changes the
		size of struct ccb_scsiio, but not the size of union ccb.
		So the version must be bumped to prevent structure
		mis-matches.

scsi_all.h:	Lots of updated SCSI sense data and other structures.

		Add function prototypes for the new sense data functions.

		Take out the inline implementation of scsi_extract_sense().
		It is now too large to put in a header file.

		Add macros to calculate whether fields are present and
		filled in fixed and descriptor sense data

scsi_all.c:	In scsi_op_desc(), allow the user to pass in NULL inquiry
		data, and we'll assume a direct access device in that case.

		Changed the SCSI RESERVED sense key name and description
		to COMPLETED, as it is now defined in the spec.

		Change the error recovery action for a number of read errors
		to prevent lots of retries when the drive has said that the
		block isn't accessible.  This speeds up reconstruction of
		the block by any RAID software running on top of the drive
		(e.g. ZFS).

		In scsi_sense_desc(), allow for invalid sense key numbers.
		This allows calling this routine without checking the input
		values first.

		Change scsi_error_action() to use scsi_extract_sense_len(),
		and handle things when invalid asc/ascq values are
		encountered.

		Add a new routine, scsi_desc_iterate(), that will call the
		supplied function for every descriptor in descriptor format
		sense data.

		Add scsi_set_sense_data(), and scsi_set_sense_data_va(),
		which build descriptor and fixed format sense data.  They
		currently default to fixed format sense data.

		Add a number of scsi_get_*() functions, which get different
		types of sense data fields from either fixed or descriptor
		format sense data, if the data is present.

		Add a number of scsi_*_sbuf() functions, which print
		formatted versions of various sense data fields.  These
		functions work for either fixed or descriptor sense.

		Add a number of scsi_sense_*_sbuf() functions, which have a
		standard calling interface and print the indicated field.
		These functions take descriptors only.

		Add scsi_sense_desc_sbuf(), which will print a formatted
		version of the given sense descriptor.

		Pull out a majority of the scsi_sense_sbuf() function and
		put it into scsi_sense_only_sbuf().  This allows callers
		that don't use struct ccb_scsiio to easily utilize the
		printing routines.  Revamp that function to handle
		descriptor sense and use the new sense fetching and
		printing routines.

		Move scsi_extract_sense() into scsi_all.c, and implement it
		in terms of the new function, scsi_extract_sense_len().
		The _len() version takes a length (which should be the
		sense length - residual) and can indicate which fields are
		present and valid in the sense data.

		Add a couple of new scsi_get_*() routines to get the sense
		key, asc, and ascq only.

mly.c:		Rename struct scsi_sense_data to struct
		scsi_sense_data_fixed.

sbp_targ.c:	Use the new sense fetching routines to get sense data
		instead of accessing it directly.

sbp.c:		Change the firewire/SCSI sense data transformation code to
		use struct scsi_sense_data_fixed instead of struct
		scsi_sense_data.  This should be changed later to use
		scsi_set_sense_data().

ciss.c:		Calculate the sense residual properly.  Use
		scsi_get_sense_key() to fetch the sense key.

mps_sas.c,
mpt_cam.c:	Set the sense residual properly.

iir.c:		Use scsi_set_sense_data() instead of building sense data by
		hand.

iscsi_subr.c:	Use scsi_extract_sense_len() instead of grabbing sense data
		directly.

umass.c:	Use scsi_set_sense_data() to build sense data.

		Grab the sense key using scsi_get_sense_key().

		Calculate the sense residual properly.

isp_freebsd.h:	Use scsi_get_*() routines to grab asc, ascq, and sense key
		values.

		Calculate and set the sense residual.

MFC after:	3 days
Sponsored by:	Spectra Logic Corporation
2011-10-03 20:32:55 +00:00
Eitan Adler
a2f4ffd69c - fix whitespace issue in calendar
- add a n after \

Submitted by:	brueffer
Approved by:	bapt (mentor)
2011-09-28 20:46:52 +00:00
Eitan Adler
576d2da4ac - add myself to committers-ports.dot
Approved by:	sahil (mentor)
2011-09-28 18:56:02 +00:00
Robert Millan
a9f5cd4156 Add myself to committers-src.dot.
Approved by:	kib (mentor)
2011-09-27 05:30:52 +00:00
Carlo Strub
18e5ceed6b Add myself and connect me with my mentors
Approved by:	re@, glarkin@
2011-09-16 22:57:50 +00:00
Gavin Atkinson
c18b2beaa1 Add my doc mentor/mentee relationships.
Approved by:	re (kib), bcr, jkois (mentors)
2011-09-03 12:59:05 +00:00
Philip Paeps
aeb339fc34 MFV pciids-20110716, r224099
Update to use the latest version of the PCI IDs Repository.
As discussed on -current@ in May, this brings in a new source of the database,
which is also used by other operating systems.  Our previous sources no longer
exist and this database is actively maintained and more complete in general.
2011-07-16 15:40:26 +00:00
Ryan Steinmetz
c7323fd775 Add myself to committers-ports.dot
Approved by:	wxs@ (mentor)
2011-07-15 21:37:13 +00:00
Edwin Groothuis
e6df989fe4 Remove AN again now that tzdata2011h has been imported. 2011-06-28 10:38:12 +00:00
Alexander Motin
27a8904bf1 Add Digitizer-related usage IDs from HUTRR30 and HUTRR34. 2011-06-16 15:53:14 +00:00
Stephen Montgomery-Smith
333e81d6e8 Reviewed by: gabor (mentor)
Approved by:	gabor (mentor)
2011-06-14 17:51:46 +00:00
Chris Rees
90dc53a6f0 Add self
Approved by:	rene (mentor)
2011-06-11 21:27:14 +00:00
Julien Laffaye
d3edd193e0 - Add myself to calendar.freebsd
- Add the forgotten relation to mentors in committers-ports.dot

Approved by:	bapt@ (mentor)
2011-06-07 09:06:15 +00:00
Julien Laffaye
9821807db1 Add myself to committers-ports.dot
Approved by: tabthorpe@ (mentor)
2011-06-06 23:48:48 +00:00
Ulrich Spörlein
135bce2a9e mdoc: reorder sections consistently 2011-06-02 09:56:53 +00:00
Aleksandr Rybalko
141fa00b5f Added myself as src committer.
Approved by: adrian (mentor)
2011-05-26 13:54:07 +00:00
Ulrich Spörlein
6e18fca127 Re-encode files from ISO-8859-1 to UTF-8 2011-05-22 14:03:30 +00:00
Ben Laurie
a5b05a8d85 Fix clang warnings.
Approved by:	philip (mentor)
2011-05-19 15:18:35 +00:00
Edwin Groothuis
dac7406203 Put AN back after finding out that tzsetup(1) will complain that
it doesn't exist. It will be removed again once the tzdata distribution
files have been updated with the replacements for AN.
2011-05-19 13:09:39 +00:00
Ruslan Ermilov
cf7d1a17c2 Revert change to "MF" I made in r189767. I bet that at the time of r189767
I checked with http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm
and "MF" was officially spelled in English as "Saint Martin" there, but now
that "SX" exists (for "Sint Maarten (Dutch part)") (nice official "English"
spelling!) they seem to have added a "(French part)" suffix to "MF".  Since
this is also in line with Newsletter VI-1 (2007-09-21), catch up.
2011-05-17 10:44:11 +00:00
Ulrich Spörlein
f8037af57c ISO3166: Update for newsletters VI-7 and VI-8 from 2010
- Name change for SH
- BQ, CW, and SX replace AN

Reviewed by:	ru
2011-05-17 08:13:27 +00:00
Ulrich Spörlein
60134116ed Whitespace and typo fixes.
Found by:	codespell
Reviewed by:	ru
2011-05-17 08:13:18 +00:00
Maxim Konovalov
270f395a51 o OpenBSD 4.9 added. 2011-05-02 09:47:13 +00:00
Sergey Kandaurov
849e836ec6 Add DragonFly 2.10.1 release. 2011-04-27 12:12:22 +00:00
Artem Belevich
aecaead25b Added myself as src committer.
Approved by: avg (mentor)
2011-04-02 00:08:32 +00:00
Ganael LAPLANCHE
168c03cc8f Add relation to my mentor (ehaupt) 2011-03-31 06:11:49 +00:00
Ganael LAPLANCHE
71165daf26 Add myself to committers-ports.dot 2011-03-28 09:05:43 +00:00
Sofian Brabez
b3a6a09643 Add an entry for myself to committers-ports.dot.
Approved by:	miwi@ (mentor)
2011-03-18 09:03:14 +00:00
Pawel Pekala
47dfe02052 add myself
Approved by:     miwi (mentor)
2011-03-13 17:03:19 +00:00
Mikolaj Golub
b95f402d56 Add myself to calendar.freebsd and committers-src.dot.
Approved by:	pjd (mentor)
2011-03-11 10:11:22 +00:00
Gavin Atkinson
1930a086b5 Add a couple of nodes and edges in order to reduce the number of unattached
committers in the rendered output.
While here, add versus@ as being mentered by myself and fjoe@
2011-03-10 23:20:32 +00:00
Steve Kargl
034bbd821b Obligatory first commit to the include myself in the list of
committers list.

Approved by: das
2011-03-06 00:57:08 +00:00
Gavin Atkinson
adb67a1ac0 Add two missing vertical bars. 2011-03-05 15:18:11 +00:00
Maxim Konovalov
c28e9f4cfd o FreeBSD 8.2 and 7.4-RELEASE added. Mac OS X 10.6 added belatedly. 2011-02-25 07:33:42 +00:00
Martin Wilke
cff00b90fd - Added following port committers:
Marcus von Appen (mva@) (mentor: beech, miwi)
	Dennis Herrmann (dhn@) (mentor: tabthorpe, miwi)
	Brendan Fabeny (bf@)  (mentor: makc, miwi)
	Kris Moore (kmoore@)  (mentor: brooks, miwi)
	Sylvio Cesar Teixeira <sylvio@> (mentor: itetcu, miwi)
	Lars Engels (lme) (mentor: miwi)
2011-02-13 06:19:38 +00:00
Ryusuke SUZUKI
40a4c1f85d Add myself to the list of doc commiters. 2011-01-20 17:28:57 +00:00
Maxim Konovalov
fb332e2e88 o Correct version of DragonFly: it was 2.8.2 released, not 2.8.0.
Submitted by:	Sascha Wildner
2011-01-19 10:30:49 +00:00
Giorgos Keramidas
5af89be7b5 Glen Barber is co-mentored by me and jkois, so add another
relationship edge to the committer graph to show this.
2011-01-05 09:45:20 +00:00
Giorgos Keramidas
69ee1d3da4 Add gjb to the doc committer graph, as my current mentee. 2011-01-05 09:43:04 +00:00
Gavin Atkinson
ee3cc9723c Update committers-doc.dot, noving doc committer alumni into the alumni
section and recording the date these commit bits were returned.  Also, sort
the remaining entries, and add a node for mheinen, who is already referenced
within the mentor relationships.

Other doc committers are encouraged to add themselves, and any mentor/mentee
relationships.  The current rendered output is available at
http://people.freebsd.org/~gavin/comm-doc.png
2011-01-04 22:56:18 +00:00
Gavin Atkinson
01863a28b5 Add nodes for current and past committers that are already referenced in
relationships, so they are rendered as more than just a username.
Add a couple of relationships between committers who already have existing
nodes to help with the rendered output.
2011-01-01 20:17:29 +00:00
Gavin Atkinson
58ffb73ca3 Move alumni committers from the active section. 2010-12-31 13:07:21 +00:00
Gavin Atkinson
dc8a809989 For committers listed as alumni, add the date that their commit bit was
returned where this information is missing and easy to determine.  Move
adrian@ back to the "Active committers" section.
2010-12-31 11:55:39 +00:00
Wen Heping
f3143b5c2f - Add myself to committers-ports.dot 2010-12-13 08:56:30 +00:00
Florian Smeets
f9cd2d0a8d Add myself to calendar.freebsd and committers-ports.dot
Approved by:	fjoe (mentor)
2010-12-07 23:56:51 +00:00
Maxim Konovalov
1602b77793 o NetBSD 5.1 added. 2010-11-23 06:31:09 +00:00
Zack Kirsch
9ded5b2a58 Add myself as a new committer and add zml as my mentor.
Approved by: zml (mentor)
2010-11-10 18:37:03 +00:00
Ulrich Spörlein
95a68ec69c Add DragonflyBSD 2.8 and OpenBSD 4.8 releases
Also expand a stray tab in the family tree

MFC after:	1 week
2010-11-01 17:27:09 +00:00
Baptiste Daroussin
f631a04d26 Add attachement to my mentors
Reporter by: wxs (on irc)
2010-10-27 12:51:36 +00:00