From 41f25c3e2e1913989f91e60921a8b80aca3c245f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 19 Nov 2013 05:41:15 +0000 Subject: [PATCH] scst.h: Clarify data direction comments I think the comments in scst.h for data_direction and expected_data_direction can be made more clear. The patch below makes the comments for these two variables more detailed. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5121 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 30f7da773..31ac605ee 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -2086,10 +2086,13 @@ struct scst_cmd { int timeout; /* CDB execution timeout in seconds */ int retries; /* Amount of retries that will be done by SCSI mid-level */ - /* SCSI data direction, one of SCST_DATA_* constants */ + /* + * Data direction derived from the opcode and the ANSI T10 SCSI specs. + * One of SCST_DATA_* constants. + */ scst_data_direction data_direction; - /* Remote initiator supplied values, if any */ + /* Values supplied by the initiator in the transport layer header, if any */ scst_data_direction expected_data_direction; int expected_transfer_len; int expected_out_transfer_len; /* for bidi writes */