Whamcloud - gitweb
- added test_3b which emulates recursive mount. Does not pass yet.
[fs/lustre-release.git] / lustre / tests / mcreate.c
1 #include <stdio.h>
2 #include <sys/types.h>
3 #include <sys/stat.h>
4 #include <errno.h>
5 #include <string.h>
6 #include <fcntl.h>
7 #include <unistd.h>
8
9 int main(int argc, char ** argv)
10 {
11         int rc;
12
13         if (argc < 2) {
14                 printf("Usage %s filename\n", argv[0]);
15                 return 1;
16         }
17
18         rc = mknod(argv[1], S_IFREG | 0644, 0);
19         if (rc) {
20                 printf("mknod(%s) error: %s\n", argv[1], strerror(errno));
21         }
22         return rc;
23 }