relan / exfat

Free exFAT file system implementation
GNU General Public License v2.0
789 stars 179 forks source link

Pass stat to filler in readdir for dirent->d_type #97

Closed mabrowning closed 6 years ago

mabrowning commented 6 years ago

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()

relan commented 6 years ago

Thanks!