Whamcloud - gitweb
Merge b_md into HEAD
[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_lib.h>
6 #include <linux/lustre_lite.h>
7 #include <linux/obd_lov.h>
8
9 int main(int argc, char **argv)
10 {
11         int fd; 
12
13         if (argc != 2) { 
14                 printf("Usage %s <filename>\n", argv[0]); 
15                 exit(1);
16         }
17
18         fd = open(argv[1], O_RDONLY | O_LOV_DELAY_CREATE);
19         if (fd == -1) { 
20                 printf("Error opening %s\n", argv[1]);
21                 exit(1);
22         }
23
24         return 0;
25 }