From b3850292397bed2c8413c6d85b5506dc77517add Mon Sep 17 00:00:00 2001 From: pschwan Date: Thu, 30 Jan 2003 21:09:09 +0000 Subject: [PATCH] an open(O_LOV_CREATE_DELAY) test --- lustre/tests/open_delay.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lustre/tests/open_delay.c diff --git a/lustre/tests/open_delay.c b/lustre/tests/open_delay.c new file mode 100644 index 0000000..2f418846 --- /dev/null +++ b/lustre/tests/open_delay.c @@ -0,0 +1,25 @@ +#include +#include +#include +#include +#include +#include +#include + +int main(int argc, char **argv) +{ + int fd; + + if (argc != 2) { + printf("Usage %s \n", argv[0]); + exit(1); + } + + fd = open(argv[1], O_RDONLY | O_LOV_DELAY_CREATE); + if (fd == -1) { + printf("Error opening %s\n", argv[1]); + exit(1); + } + + return 0; +} -- 1.8.3.1