Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / liblustre / test_common.h
1 #ifndef __TEST_COMMON__H
2 #define __TEST_COMMON__H
3
4 #define ENV_LUSTRE_MNTPNT               "LIBLUSTRE_MOUNT_POINT"
5 #define ENV_LUSTRE_MNTTGT               "LIBLUSTRE_MOUNT_TARGET"
6 #define ENV_LUSTRE_DUMPFILE             "LIBLUSTRE_DUMPFILE"
7
8 extern int exit_on_err;
9
10 void t_touch(const char *path);
11 void t_create(const char *path);
12 void t_link(const char *src, const char *dst);
13 void t_unlink(const char *path);
14 void t_mkdir(const char *path);
15 void t_rmdir(const char *path);
16 void t_symlink(const char *src, const char *new);
17 void t_mknod(const char *path, mode_t mode, int major, int minor);
18 void t_chmod_raw(const char *path, mode_t mode);
19 void t_chmod(const char *path, const char *format, ...);
20 void t_rename(const char *oldpath, const char *newpath);
21 int t_open_readonly(const char *path);
22 int t_open(const char *path);
23 void t_close(int fd);
24 int t_check_stat(const char *name, struct stat *buf);
25 int t_check_stat_fail(const char *name);
26 void t_echo_create(const char *path, const char *str);
27 //int t_pread_once(const char *path, char *buf, size_t size, off_t offset);
28 void t_grep(const char *path, char *str);
29 void t_grep_v(const char *path, char *str);
30
31 #endif