Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix tests 118 to work with remote ost.
[fs/lustre-release.git]
/
lustre
/
tests
/
openme.c
1
#include <fcntl.h>
2
#include <unistd.h>
3
#include <stdlib.h>
4
#include <stdio.h>
5
6
int main(int argc, char **argv)
7
{
8
int fd;
9
10
if (argc != 2) {
11
printf("Usage openme <filename>\n");
12
exit(1);
13
}
14
15
fd = open(argv[1], O_RDONLY | O_CREAT, 0600);
16
if (fd == -1) {
17
printf("Error opening %s\n", argv[1]);
18
exit(1);
19
}
20
21
sleep(10000000);
22
return 0;
23
}