Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use special macro for print time_t, cleanup in includes.
[fs/lustre-release.git]
/
lustre
/
liblustre
/
tests
/
test_common.c
diff --git
a/lustre/liblustre/tests/test_common.c
b/lustre/liblustre/tests/test_common.c
index
29377b1
..
8b7ba3b
100644
(file)
--- a/
lustre/liblustre/tests/test_common.c
+++ b/
lustre/liblustre/tests/test_common.c
@@
-14,6
+14,8
@@
#include <utime.h>
#include <stdarg.h>
#include <utime.h>
#include <stdarg.h>
+#include <liblustre.h>
+
#include "test_common.h"
int exit_on_err = 1;
#include "test_common.h"
int exit_on_err = 1;
@@
-327,7
+329,7
@@
void t_grep_v(const char *path, char *str)
void t_ls(int fd, char *buf, int size)
{
void t_ls(int fd, char *buf, int size)
{
-
struct dirent64
*ent;
+
cfs_dirent_t
*ent;
int rc, pos;
loff_t base = 0;
int rc, pos;
loff_t base = 0;
@@
-335,7
+337,7
@@
void t_ls(int fd, char *buf, int size)
while ((rc = getdirentries64(fd, buf, size, &base)) > 0) {
pos = 0;
while (pos < rc) {
while ((rc = getdirentries64(fd, buf, size, &base)) > 0) {
pos = 0;
while (pos < rc) {
- ent = (
struct dirent64
*) ((char*) buf + pos);
+ ent = (
cfs_dirent_t
*) ((char*) buf + pos);
printf("%s\n", ent->d_name);
pos += ent->d_reclen;
}
printf("%s\n", ent->d_name);
pos += ent->d_reclen;
}