X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fliblustre%2Ftests%2Ftest_common.c;h=8b7ba3bb85edca92a00f9f95c866967d16f70436;hp=29377b188037f87b365a99316749c8f50504085e;hb=c1f6b32958c799412c830f35f8d16ed7275407ea;hpb=64e9b3dab58b08a57fd8832491fb5eb89a575ee4 diff --git a/lustre/liblustre/tests/test_common.c b/lustre/liblustre/tests/test_common.c index 29377b1..8b7ba3b 100644 --- a/lustre/liblustre/tests/test_common.c +++ b/lustre/liblustre/tests/test_common.c @@ -14,6 +14,8 @@ #include #include +#include + #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) { - struct dirent64 *ent; + cfs_dirent_t *ent; 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) { - ent = (struct dirent64 *) ((char*) buf + pos); + ent = (cfs_dirent_t *) ((char*) buf + pos); printf("%s\n", ent->d_name); pos += ent->d_reclen; }