On Fri, Apr 22, 2016 at 02:23:56PM +0100, Al Viro wrote: > On Fri, Apr 22, 2016 at 08:50:04AM -0400, Emily Maier wrote: > > The VFS permits filesystems to implement read(2) on directories, but > > FUSE unconditionally returns -EISDIR for it. Expose this to userspace as > > FUSE_DIR_READ and continue returning the old behavior if the filesystem > > doesn't implement it. > > What the hell for? read() on directories had been an anachronism since > early 80s, has nothing resembling a sane semantics, etc. > > Why would we want to implement that idiocy? > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html To permit getting metadata on a directory by reading from it, similarly to ceph's "dirstat" option. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html