ref: 797952d0658534a11da0f2208fc63823dad40439
parent: 330e7ef39b9a4afa6f484b80bdc3684603c83387
author: cinap_lenrek <[email protected]>
date: Wed Sep 27 10:02:13 EDT 2017
sdnvme: identify namespace list fails on intel ssd, just assume nsid=[1]
--- a/sys/src/9/pc/sdnvme.c
+++ b/sys/src/9/pc/sdnvme.c
@@ -434,7 +434,8 @@
e = qcmd(&ws, ctlr, 1, 0x06, 0, nil, ctlr->nsid, 0x1000);
e[10] = 2; // namespace list
- checkstatus(wcmd(&ws), "namespace list");
+ if(wcmd(&ws) != 0)
+ ctlr->nsid[0] = 1; /* assume namespace #1 */
ctlr->nnsid = 0;
while(ctlr->nnsid < 1024 && ctlr->nsid[ctlr->nnsid] != 0)