Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / tests / open_delay.c
1 #include <fcntl.h>
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <stdio.h>
5 #include <linux/lustre_user.h>
6
7 int main(int argc, char **argv)
8 {
9         int fd;
10
11         if (argc != 2) {
12                 printf("Usage %s <filename>\n", argv[0]);
13                 exit(1);
14         }
15
16         fd = open(argv[1], O_RDONLY | O_LOV_DELAY_CREATE);
17         if (fd == -1) {
18                 printf("Error opening %s\n", argv[1]);
19                 exit(1);
20         }
21
22         return 0;
23 }