Re: [PATCH] fuse: Expose read from directory to userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux