Linux-NVME Archive on
 help / color / Atom feed
* Issue With NVME CLI list Command
@ 2019-10-10 19:11 Jeffrey Lien
  2019-10-10 19:23 ` Keith Busch
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey Lien @ 2019-10-10 19:11 UTC (permalink / raw)
  To: Keith Busch, linux-nvme

I'm getting a "Failed to scan namespaces" error message back from the "nvme list" command after updating my fork and picking up your changes from Aug 28th.  The cause of the failure is the following check in the function verify_legacy_ns (in nvme-topology.c):

	if (memcmp(, c->, sizeof( ||
	    memcmp(, c->, sizeof(
		return -ENODEV;

The problem I see is that ctrl info is never filled in (at least in my case).  Both c-> and c-> are blank.  Looking back in the legacy_list function, I don't see how the ctrl info is ever filled in.  Maybe it's just something strange in my case; I would have thought someone would have stumbled across already but maybe not.  If I remove the above check; everything seems to work so I think the code is basically working as expected.    Could you review the changes and either confirm what I'm seeing or let me know if I'm missing something.  


Jeff Lien
Linux Device Driver Development
Device Host Apps and Drivers
o: 507-322-2416 (ext. 23-2416)
m: 507-273-9124

Linux-nvme mailing list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 19:11 Issue With NVME CLI list Command Jeffrey Lien
2019-10-10 19:23 ` Keith Busch
2019-10-10 19:39   ` Keith Busch
2019-10-10 20:10     ` Jeffrey Lien
2019-10-10 19:42   ` Jeffrey Lien

Linux-NVME Archive on

Archives are clonable:
	git clone --mirror linux-nvme/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nvme linux-nvme/ \
	public-inbox-index linux-nvme

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone