Include ctype.h header to quiet warning for use of isdigit().
Change argument of loadgen.c::read_proc() to quiet pointer type warning.
#include <fcntl.h>
#include <dirent.h>
#include <time.h>
+#include <ctype.h>
#include <lnet/api-support.h>
#include <lnet/lnetctl.h>
return rc;
}
-static int read_proc(char *proc_path, long long *value)
+static int read_proc(char *proc_path, unsigned long long *value)
{
int fd, rc;
char buf[50];
MDIR=/lib/modules/`uname -r`/lustre
mkdir -p $MDIR
-KVER=24
-EXT=o
-FSFLT=fsfilt_ext3
-MODFILE="/etc/modules.conf"
-if [ `uname -r | cut -c 3` -eq 6 ]; then
- KVER=26
- EXT=ko
- FSFLT=fsfilt_ldiskfs
+KVER=26
+EXT=ko
+FSFLT=fsfilt_ldiskfs
+if [ -d /etc/modprobe.d ]; then
+ MODFILE="/etc/modprobe.d/Lustre"
+else
MODFILE="/etc/modprobe.conf"
fi
+if [ `uname -r | cut -c 3` -eq 4 ]; then
+ KVER=24
+ EXT=o
+ FSFLT=fsfilt_ext3
+ MODFILE="/etc/modules.conf"
+fi
echo "Copying modules from local build dir to "$MDIR