diff options
author | 2016-04-13 13:09:36 +0000 | |
---|---|---|
committer | 2016-04-13 13:09:36 +0000 | |
commit | a50b57eac01dff6eccb2860e4b4b942717a32f91 (patch) | |
tree | 42e0b3e423ea3b8a12c7ac30819792ad4c4eff5c | |
parent | implement handling of scsi read capacity commands (diff) | |
download | wireguard-openbsd-a50b57eac01dff6eccb2860e4b4b942717a32f91.tar.xz wireguard-openbsd-a50b57eac01dff6eccb2860e4b4b942717a32f91.zip |
stub out handling of TEST_UNIT_READY, PREVENT_ALLOW, and START_STOP
at the moment this just pretends the commands completed fine.
-rw-r--r-- | sys/dev/ic/nvme.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index a8ef3559af2..566ef386261 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.28 2016/04/13 13:05:10 dlg Exp $ */ +/* $OpenBSD: nvme.c,v 1.29 2016/04/13 13:09:36 dlg Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -425,6 +425,13 @@ nvme_scsi_cmd(struct scsi_xfer *xs) nvme_scsi_capacity(xs); return; + case TEST_UNIT_READY: + case PREVENT_ALLOW: + case START_STOP: + xs->error = XS_NOERROR; + scsi_done(xs); + return; + default: break; } |