Whamcloud - gitweb
LU-3683 libcfs: improve validity test for valid file descriptors 75/7275/4
authorBob Glossman <bob.glossman@intel.com>
Thu, 8 Aug 2013 17:59:59 +0000 (10:59 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Aug 2013 18:24:31 +0000 (18:24 +0000)
commit42a2e7cff98f2d9b5569ad4f3b6671cfca0ba592
treea5a3326da53a4c12e5ca25145859b7cd61415469
parentf44a4604921f2450aab8997d80ba21ff1282b5b7
LU-3683 libcfs: improve validity test for valid file descriptors

File descriptor members of struct lustre_kernelcomm aren't set to
anything special at start time.
This leads to incorrect tests and skipping valid fd closes at stop time.
Fixed by defining, setting, and testing against a specific LK_NOFD value.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I9306ce380c5e049ef442b99ac20e51271deafbc5
Reviewed-on: http://review.whamcloud.com/7275
Tested-by: Hudson
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_kernelcomm.h
libcfs/libcfs/kernel_user_comm.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_hsm.c