summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-05-28 23:19:26 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-05-28 23:19:26 +0000
commite478d770baf19ef2f71f91c58294908cface9e61 (patch)
treeeb1b209fdc206e61e587e936f615b1dbd065b1b2 /sys/scsi
parentf5bec20632160804d7afc99cd777eab2cf44d93c (diff)
Whack a 'control device' leftover. Actually save the new density, etc.
that was just accepted by the device, no matter what the minor is. ok beck@
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/st.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index e5aca3df54c..ba77785a45e 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.57 2006/05/28 20:04:52 krw Exp $ */
+/* $OpenBSD: st.c,v 1.58 2006/05/28 23:19:25 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1263,23 +1263,18 @@ try_new_value:
/*
* As the drive liked it, if we are setting a new default,
* set it into the structures as such.
- *
- * The means for deciding this are not finalised yet
*/
- if (STMODE(dev) == 0x03) {
- /* special mode */
- /* XXX */
- switch ((short) (mt->mt_op)) {
- case MTSETBSIZ:
- st->modes[dsty].blksize = st->blksize;
- st->modeflags[dsty] |= BLKSIZE_SET_BY_USER;
- break;
- case MTSETDNSTY:
- st->modes[dsty].density = st->density;
- st->modeflags[dsty] |= DENSITY_SET_BY_USER;
- break;
- }
+ switch (mt->mt_op) {
+ case MTSETBSIZ:
+ st->modes[dsty].blksize = st->blksize;
+ st->modeflags[dsty] |= BLKSIZE_SET_BY_USER;
+ break;
+ case MTSETDNSTY:
+ st->modes[dsty].density = st->density;
+ st->modeflags[dsty] |= DENSITY_SET_BY_USER;
+ break;
}
+
return 0;
}