Whamcloud - gitweb
LU-8724 utils: Use open() instead of opendir() with dirfd() 81/23981/6
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 5 Dec 2016 19:39:16 +0000 (14:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 23 Dec 2016 05:05:19 +0000 (05:05 +0000)
commit44b6af40f70cf065e8198b6b438d6c953063d003
tree5640cf1ecfcc28e02928f5ccf35ef6bf446bcb60
parentc09317f0ba07bc7c9af229b9bfb166be56792bbf
LU-8724 utils: Use open() instead of opendir() with dirfd()

Several llapi functions use opendir() and dirfd() to obtain a file
descriptor.  These calls are replaced with a single call to open().
This makes the code cleaner and more efficient.

This patch also corrects whitespace to match the Coding Style
Guidelines.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I798165960fb500920b82adabe389975135ed3ac9
Reviewed-on: https://review.whamcloud.com/23981
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/liblustreapi.c