Open piranna opened 8 years ago
closing old requests.
Could this be open again? I'm still interested on this feature.
No one made any update for that from last year, so i think its will be declined.
Mostly it's just add the field to a structure and fill it with the file type, it's an easy task. Would you be willing to implement it? If not, would you accept a pull-request?
Here you can find more info about the d_type field:
http://www.gnu.org/software/libc/manual/html_node/Directory-Entries.html http://man7.org/linux/man-pages/man3/readdir.3.html
If you can provide pull request with change that stable, and not harming any kernel distribution when building, i will merge it.
When reading a file it's being given the type to dir_emit()
, could it be that this is already being supported? Could we notify the other file types (specially symlinks)?
@piranna Are you willing to provide a pull request about it?
Not too much time lately, but it should be simple. If you want to do it, I can review and give advice :-)
Add support for
d_type
info so it can be used as a upper filesystem for OverlayFS