Thread (1 message) 1 message, 1 author, 2013-02-13

Re: [PATCH] infiniband-diags: Remove Red Hat-ism.

From: Ira Weiny <hidden>
Date: 2013-02-13 22:11:13

On Tue, 4 Dec 2012 11:48:18 -0800
Garrett Cooper [off-list ref] wrote:
On Tue, Dec 4, 2012 at 10:11 AM, Jason Gunthorpe
[off-list ref] wrote:
quoted
On Tue, Dec 04, 2012 at 08:31:19AM -0800, Garrett Cooper wrote:
quoted
Calling ``newname=$(hostname)`` would be better (assuming that the
network was setup enough where one could get this information).
Calling hostname is always preferred to mucking about with files in
/etc/. hostname never requires the network, hostname -f might
sometimes.
Yes, but OSes don't set the hostname until a little later on in the
boot process (FreeBSD for instance), depending upon how the system was
first booted and the host's network configuration (DHCP*/SLAAC/etc).
That's more of what I was driving at when I said "assuming that the
network was setup enough where one could get this information".
set_nodedesc.sh was deprecated and moved to a compat build a while ago.

As such I think the best thing to do is use hostname as Jason says and call it good.  I believe that users attempting to set the NodeDescription within boot scripts can do so with the sysfs files.

Jon I would accept a patch if you would like to redo this one but I am going to reject the patch as it stands.

Thanks,
Ira
Thanks,
-Garrett
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Ira Weiny
Member of Technical Staff
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help