Thread (2 messages) 2 messages, 2 authors, 2021-08-19

Re: hostname cannot be used for traddr?

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-08-19 14:38:07

On Thu, Aug 19, 2021 at 04:27:35PM +0200, Andreas Luengen wrote:
Hi nvmetcli developers.

Following the NVMe specs I understand that it should be possible to use 
host name or fully qualified domain name instead of an IP address in the 
traddr field.
Setting the host name works, but when I try to attach a device this fails. 
Just changing the host name to a valid IP address and then attaching a 
device works (see below).

May I  miss something or is this a bug?
Not a bug and you're not missing anything.  The kernel doesn't do
DNS lookups, so it need an ip address.  The only enhancement we could
do is to do the DNS lookup in the nvmetcli code, and then store the
resolved IP address in configfs for the kernel.


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help