LU-17186 utils: replace gethostby*() with get*info() This patch replaces the deprecated gethostbyname() and gethostbyaddr() functions with getaddrinfo() and getnameinfo() functions respectively. The getaddrinfo() function combines the functionality provided by the gethostbyname() and getservbyname() functions into a single interface, but unlike the latter functions, getaddrinfo() is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. The getnameinfo() function is the inverse of getaddrinfo(): it converts a socket address to a corresponding host and service, in a protocol-independent manner. It combines the functionality of gethostbyaddr() and getservbyport(), but unlike those functions, getnameinfo() is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. Test-Parameters: kerberos=true testlist=sanity-krb5 Test-Parameters: testgroup=review-dne-selinux-ssk-part-2 Signed-off-by: Jian Yu <yujian@whamcloud.com> Signed-off-by: Sebastien Buisson <sbuisson@ddn.com> Change-Id: Iacb5583826cd2f7329455bc6cbb4477f9087f15a Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52632 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-11233 utils: fix build warnings for gcc8 Quiet new build warnings that appear with GCC8, mainly related to the length of string buffers not being long enough (in theory) for the maximum possible string sizes, even if this never actually is possible in practice. Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com> Change-Id: I83a955fc68f3e03fe84622ddf1cedfb30d5916ac Reviewed-on: https://review.whamcloud.com/34662 Tested-by: Jenkins Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-10308 misc: update Intel copyright messages for 2017 Update copyright messages for files updated in 2016, excluding trivial patches. Add trivial patches to updatecw.sh script exclude list. Revert some changes that were incorrectly attributed to the 2016 (d10200a80770f0029d1d665af954187b9ad883df) and 2015 (0754bc8f2623bea184111af216f7567608db35b6) copyright update patches themselves, since they were not in the exclude list when the subsequent script was run. Test-Parameters: trivial Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: I82f21c30c4dac75792bb49fc139bee2ca51f5545 Reviewed-on: https://review.whamcloud.com/30341 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Jian Yu <jian.yu@intel.com> Reviewed-by: James Nunez <james.a.nunez@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-8901 misc: update Intel copyright messages for 2016 Update copyright messages for files updated in 2016, excluding trivial patches. Add trivial patches to updatecw.sh script exclude list. Improve the output of patches causing the most changes to include the patch summary instead of just the hash. Test-Parameters: trivial Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: Ifb098e8126f698ea975e10ba13f5f47c449ae4ad Reviewed-on: https://review.whamcloud.com/24233 Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Tested-by: Oleg Drokin <oleg.drokin@intel.com>
LU-8599 utils: restore lshowmount utility The lshowmount utility was removed in commit b5a7260ae8f as being obsolete, but it was not as unused as previously thought. Restore lshowmount.c, lshowmount.8, nidlist.c, and nidlist.h from history, with minor updates to the Makefiles and .gitignore to avoid conflicts in context. Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Yang Sheng <yang.sheng@intel.com> Change-Id: Ibf6f72684d4dcaa95e0366b4fde74386893ebbe5 Reviewed-on: http://review.whamcloud.com/17593 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Reviewed-by: Thomas Stibor <t.stibor@gsi.de> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2675 utils: remove unused utilities Remove the unused lnet utilities: debugctl, lstclient, and ptlctl. Remove the unused lustre utilities: lrun, lshowmount, module_cleanup.sh, obdctl, and rmmod_all.sh. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I7797f9b1be267ad36bdcd50848cb0e1e656c3c41 Reviewed-on: http://review.whamcloud.com/10510 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Liang Zhen <liang.zhen@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-4629 utils: fix NULL pointer dereference 'uuid' and 'lnet' can be NULL. So check for this case. Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: I06ead7470649054ca5bd0e0395f5e817c08bc2db Reviewed-on: http://review.whamcloud.com/10136 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: John L. Hammond <john.hammond@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2217 build: fix 'NULL pointer dereference' errors Fix 'NULL pointer dereference' defects found by Coverity version 6.5.3: Dereference after null check (FORWARD_NULL) For instance, Passing null pointer to a function which dereferences it. Dereference before null check (REVERSE_INULL) Null-checking variable suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Dereference null return value (NULL_RETURNS) Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net> Change-Id: I646d75d488b66ed348ec51cc2b69f0b644474c30 Reviewed-on: http://review.whamcloud.com/4720 Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1347 build: remove the vim/emacs modelines Delete all of the vim/emacs modelines. Add copyright information for a few files. Signed-off-by: Liang Zhen <liang@whamcloud.com> Change-Id: Ic22ce8d8cc7786ffdb19937eb9f93a2d49aa2581 Reviewed-on: http://review.whamcloud.com/2658 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
Mass conversion of all copyright messages to Oracle.
b=17997 add a new implementation of lshowmount i=adilger i=hongchao.zhang