From: pschwan Date: Thu, 30 Jan 2003 21:09:09 +0000 (+0000) Subject: an open(O_LOV_CREATE_DELAY) test X-Git-Tag: v1_7_100~1^94~125 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b3850292397bed2c8413c6d85b5506dc77517add;p=fs%2Flustre-release.git an open(O_LOV_CREATE_DELAY) test --- 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; +}