#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <liblustre.h>
-#include <linux/obd.h>
-#include <linux/lustre_lib.h>
-#include <linux/lustre_lite.h>
-#include <linux/obd_lov.h>
+#include <linux/lustre_user.h>
int main(int argc, char **argv)
{
- int fd;
+ int fd;
- if (argc != 2) {
- printf("Usage %s <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage %s <filename>\n", argv[0]);
exit(1);
}
fd = open(argv[1], O_RDONLY | O_LOV_DELAY_CREATE);
- if (fd == -1) {
+ if (fd == -1) {
printf("Error opening %s\n", argv[1]);
exit(1);
}