Whamcloud - gitweb
LU-9137 utils: replace readdir_r with readdir 76/27276/3
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 25 May 2017 17:45:20 +0000 (13:45 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Jun 2017 03:57:33 +0000 (03:57 +0000)
commit76b1fd6596e62cfb6a2543240db8d0823c1a1465
tree1f1cedb31edaf313aa87c848a9d208f2a096726d
parent8d70042d785e08bb59059ed3ffb0b2f5eb0e3dad
LU-9137 utils: replace readdir_r with readdir

Originally readdir_r was created to handle the case of readdir
not being reentrant. The readdir_r implementation has several
flaws and modern platforms have a glibc version were readdir
is reentrant. Because of this platforms are now marking
readdir_r as obsolete which breaks our lustre build. This
patch migrates us to readdir instead.

Change-Id: I939d5a402e6c73c56615972b2b3c6f0a21b59b55
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/27276
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi.c