sanity_SOURCES = sanity.c
sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
-sanity_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
+sanity_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a ./libtestcommon.a
recovery_small_SOURCES = recovery_small.c
recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC)
void t_ls(int fd, char *buf, int size)
{
- struct dirent *ent;
+ struct dirent64 *ent;
int rc, pos;
- off_t base = 0;
+ loff_t base = 0;
printf("dir entries listing...\n");
- while ((rc = getdirentries(fd, buf, size, &base)) > 0) {
+ while ((rc = getdirentries64(fd, buf, size, &base)) > 0) {
pos = 0;
while (pos < rc) {
- ent = (struct dirent *) ((char*) buf + pos);
+ ent = (struct dirent64 *) ((char*) buf + pos);
printf("%s\n", ent->d_name);
pos += ent->d_reclen;
}