We have SD card reading code that iterates over the filesystem using opendir() and readdir() recursively by checking the struct dirent::d_type field, which is technically non-portable but works in ext2,ext3,ext4, and vsfat. However, it wasn't working with extfat.
This pull request allows fuse to fill in the d_type field by passing a filled in struct stat to the filler() method in fuse_exfat_readdir()
We have SD card reading code that iterates over the filesystem using
opendir()
andreaddir()
recursively by checking thestruct dirent::d_type
field, which is technically non-portable but works in ext2,ext3,ext4, and vsfat. However, it wasn't working with extfat.This pull request allows fuse to fill in the
d_type
field by passing a filled instruct stat
to thefiller()
method infuse_exfat_readdir()