Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/bebox/stand/boot set error to EIO on SKEY_ABORTED_C...
details: https://anonhg.NetBSD.org/src/rev/0945ffa711ed
branches: trunk
changeset: 376011:0945ffa711ed
user: andvar <andvar%NetBSD.org@localhost>
date: Fri May 26 06:36:39 2023 +0000
description:
set error to EIO on SKEY_ABORTED_COMMAND.
It is usually the case for other SCSI drivers, though they do implement retries too.
potentially same should be committed to prep(?).
discussed with riastradh.
diffstat:
sys/arch/bebox/stand/boot/siop.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e645fa9b5b54 -r 0945ffa711ed sys/arch/bebox/stand/boot/siop.c
--- a/sys/arch/bebox/stand/boot/siop.c Fri May 26 06:27:51 2023 +0000
+++ b/sys/arch/bebox/stand/boot/siop.c Fri May 26 06:36:39 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siop.c,v 1.12 2023/05/26 06:27:51 andvar Exp $ */
+/* $NetBSD: siop.c,v 1.13 2023/05/26 06:36:39 andvar Exp $ */
/*
* Copyright (c) 2010 KIYOHARA Takashi
* All rights reserved.
@@ -991,7 +991,7 @@ scsi_interpret_sense(struct siop_adapter
case SKEY_BLANK_CHECK:
break;
case SKEY_ABORTED_COMMAND:
- /* XXX XXX initialize 'error' */
+ error = EIO;
break;
case SKEY_VOLUME_OVERFLOW:
error = ENOSPC;
Home |
Main Index |
Thread Index |
Old Index