runtests runvmstat snaprun.sh
pkglib_SCRIPTS = common.sh
pkgcfg_DATA = lustre.cfg
-noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate tchmod toexcl fsx #ldaptest
+noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate
+noinst_PROGRAMS += munlink tchmod toexcl fsx #ldaptest
# ldaptest_SOURCES = ldaptest.c
tchmod_SOURCES = tchmod.c
toexcl_SOURCES = toexcl.c
testreq_SOURCES = testreq.c
mcreate_SOURCES = mcreate.c
+munlink_SOURCES = munlink.c
truncate_SOURCES = truncate.c
directio_SOURCES = directio.c
openunlink_SOURCES = openunlink.c
--- /dev/null
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <string.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(int argc, char ** argv)
+{
+ int rc;
+
+ if (argc < 2) {
+ printf("Usage %s filename\n", argv[0]);
+ return 1;
+ }
+
+ rc = unlink(argv[1]);
+ if (rc) {
+ printf("unlink(%s) error: %s\n", argv[1], strerror(errno));
+ }
+ return rc;
+}