Whamcloud - gitweb
Allow a file to be opened with our very own O_LOV_DELAY_CREATE.
[fs/lustre-release.git] / lustre / tests / test.c
index c79a640..d4c6bf7 100755 (executable)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) 2001  Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
@@ -6,12 +13,7 @@
 #include <sys/stat.h>
 #include <asm/statfs.h>
 #include <unistd.h>
-
-#define OBD_IOC_CREATE                 _IOR('f', 3, long)
-#define OBD_IOC_SETUP                  _IOW('f', 4, long)
-#define OBD_IOC_SYNC                   _IOR('f', 16, long)
-#define OBD_IOC_DESTROY                _IOW('f', 6, long)
-#define OBD_IOC_STATFS                _IORW('f', 15, long)
+#include <linux/lustre_idl.h>
 
 #define LOOP_DEVICE "/dev/loop0"
 #define OBD_DEVICE "/dev/obd"