Hi, Using the attached disk image I observe that getdents() never returns the end of the directory, i.e. mounting the disk image on a loopback device and running 'ls' under strace shows an endless stream of:
getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 2 entries */, 32768) = 48 ... Vegard
vfat.img.bz2
Description: application/bzip