Running fio on an ESX host fails due to the lack of support for file
descriptor based notifications of timer expiration. This change
bypasses patch
696378af added to increase timer accuracy.
Signed-off-by: Brian 'Redbeard' Harrington <redbeard@redhat.com>
##########################################
# check for timerfd support
timerfd_create="no"
+if test "$esx" != "yes" ; then
cat > $TMPC << EOF
#include <sys/time.h>
#include <sys/timerfd.h>
return timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
}
EOF
-if compile_prog "" "" "timerfd_create"; then
- timerfd_create="yes"
+ if compile_prog "" "" "timerfd_create"; then
+ timerfd_create="yes"
+ fi
fi
print_config "timerfd_create" "$timerfd_create"