summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-10-16 04:05:40 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-10-16 04:05:40 +0000
commit9c64f03447e536c8941a8db7e250a2ea47a1a244 (patch)
tree1c59ac33969975c65e60b902d74773a9ce6aeca9 /sys
parent73f439b3ff70fda1475c6d637b59f4f9e84b0208 (diff)
Fix 'Tape block size (32754) not a multiple of dump block size
(1024).' errors in restore(1). Check for SDEV_OPEN in sc_link->flags (where it lives) rather than sense->flags (where it doesn't). Problem noted by John Danks on misc@ and reinforced by Otto & Hugh. ok marco@ hugh@.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 45192aed134..0722bed0d0a 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.41 2004/08/01 23:01:06 marco Exp $ */
+/* $OpenBSD: st.c,v 1.42 2004/10/16 04:05:39 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1815,7 +1815,7 @@ st_interpret_sense(xs)
u_int8_t skey = sense->flags & SSD_KEY;
int32_t info;
- if (((sense->flags & SDEV_OPEN) == 0) ||
+ if (((sc_link->flags & SDEV_OPEN) == 0) ||
(serr != 0x70 && serr != 0x71))
return (EJUSTRETURN); /* let the generic code handle it */