sdnvme: identify namespace list fails on intel ssd, just assume nsid=[1]
This commit is contained in:
parent
330e7ef39b
commit
797952d065
1 changed files with 2 additions and 1 deletions
|
@ -434,7 +434,8 @@ identify(Ctlr *ctlr)
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue