Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99dcf05
)
an open(O_LOV_CREATE_DELAY) test
author
pschwan
<pschwan>
Thu, 30 Jan 2003 21:09:09 +0000
(21:09 +0000)
committer
pschwan
<pschwan>
Thu, 30 Jan 2003 21:09:09 +0000
(21:09 +0000)
lustre/tests/open_delay.c
[new file with mode: 0644]
patch
|
blob
diff --git a/lustre/tests/open_delay.c
b/lustre/tests/open_delay.c
new file mode 100644
(file)
index 0000000..
2f41884
--- /dev/null
+++ b/
lustre/tests/open_delay.c
@@ -0,0
+1,25
@@
+#include <fcntl.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <linux/lustre_lib.h>
+#include <linux/lustre_lite.h>
+#include <linux/obd_lov.h>
+
+int main(int argc, char **argv)
+{
+ int fd;
+
+ 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) {
+ printf("Error opening %s\n", argv[1]);
+ exit(1);
+ }
+
+ return 0;
+}