#include <unistd.h>
#include <time.h>
#include <errno.h>
+#include <libcfs/libcfs.h>
#include <lustre/lustre_user.h>
#include "lp_utils.h"
filename, errno, strerror(errno));
FAIL(errmsg);
}
-
+
/* Wait for task1 to complete. */
iter = MAX_WAIT_TRIES;
do {
}
}
-/*
+/*
* task0 attempts GR(gid=1) -- granted
* task1 attempts PR on non-blocking fd -> should return -EWOULDBLOCK
* task2 attempts PW on non-blocking fd -> should return -EWOULDBLOCK
"with errno %d instead of EINVAL\n",
errno);
FAIL(errmsg);
- }
+ }
} else {
FAIL("Taking second GROUP lock on same fd succeed\n");
}
"different gid failed with errno %d "
"instead of EINVAL\n", errno);
FAIL(errmsg);
- }
+ }
} else {
FAIL("Taking second GROUP lock on same fd, with "
"different gid, succeeded.\n");
"failed with errno %d instead of "
"EINVAL\n", errno);
FAIL(errmsg);
- }
+ }
} else {
FAIL("GROUP unlock with wrong gid succeed\n");
}
"fd failed with errno %d instead of "
"EINVAL.\n", errno);
FAIL(errmsg);
- }
+ }
} else {
FAIL("GROUP unlock on never locked fd succeed\n");
}