summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-01-20 00:52:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-01-20 00:52:33 +0000
commit6f2aa3669d98151652e44aef2a0cef1cca5fc71f (patch)
treee5475a0883b1c3deb93248acccf978024fba6d46 /sys/dev
parent50809cc93ee0611a6bc7fe6a10ed950c95a02f17 (diff)
sdmmc sd(4) devices should be marked SID_REMOVABLE, so that eject(1) can
succeed. No downside in the bottom part of the driver. ok dlg krw
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index 5300065183b..d9896c84143 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.36 2016/05/05 10:51:10 kettenis Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.37 2017/01/20 00:52:32 deraadt Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -424,6 +424,7 @@ sdmmc_inquiry(struct scsi_xfer *xs)
memset(&inq, 0, sizeof inq);
inq.device = T_DIRECT;
+ inq.dev_qual2 = SID_REMOVABLE;
inq.version = 2;
inq.response_format = 2;
inq.additional_length = 32;