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