[stgt] [PATCH 10/15] ssc: fix logical postion in fixed read

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sun Oct 5 16:37:40 CEST 2008


The ssc spec says that the logical position shall be after the
filemark when encountering a filemark during a READ command.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/bs_ssc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index bb5907a..d4f51a6 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -347,6 +347,7 @@ static int resp_fixed_read(struct scsi_cmd *cmd, uint8_t *buf, uint32_t length)
 			put_unaligned_be32(count - i, info);
 			ssc_sense_data_build(cmd, NO_SENSE | SENSE_FILEMARK,
 					     ASC_MARK, info, sizeof(info));
+			skip_next_header(cmd->dev);
 			goto rd_err;
 		}
 
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list