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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux