From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emilymaier.net ([104.131.113.117]:49800 "EHLO mail.emilymaier.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbcDXE5s (ORCPT ); Sun, 24 Apr 2016 00:57:48 -0400 Date: Sun, 24 Apr 2016 00:57:44 -0400 From: Emily Maier To: Al Viro Cc: linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fuse: Expose read from directory to userspace Message-ID: <20160424045744.GA12800@localhost.localdomain> References: <1461329404-7967-1-git-send-email-emily@emilymaier.net> <20160422132356.GJ25498@ZenIV.linux.org.uk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160422132356.GJ25498@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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@vger.kernel.org > 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.