3 ms·
You are right. The default implementation in Linux returns -EISDIR, but filesystems are free to change it to something else: https://github.com/torvalds/linux/
by rzzzt 8y ago
You are right. The default implementation in Linux returns -EISDIR, but filesystems are free to change it to something else:
https://github.com/torvalds/linux/blob/2a56bb596b2c1fb612f9988afda9655c8c872a6e/fs/libfs.c#L211-L214 https://github.com/torvalds/linux/blob/2a56bb596b2c1fb612f99...
https://github.com/torvalds/linux/search?p=1&q=generic_read_dir&unscoped_q=generic_read_dir https://github.com/torvalds/linux/search?p=1&q=generic_read_...