From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Altaparmakov Subject: Re: silent semantic changes with reiser4 Date: Fri, 27 Aug 2004 09:19:32 +0100 Sender: aia21@hermes.cam.ac.uk Message-ID: <1093594771.5994.1.camel@imp.csi.cam.ac.uk> References: <45010000.1093553046@flay> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "Martin J. Bligh" , Rik van Riel , Diego Calleja , jamie@shareable.org, christophe@saout.de, vda@port.imtp.ilyichevsk.odessa.ua, christer@weinigel.se, spam@tnonline.net, Andrew Morton , wichert@wiggy.net, jra@samba.org, reiser@namesys.com, hch@lst.de, linux-fsdevel@vger.kernel.org, lkml , flx@namesys.com, reiserfs-list@namesys.com Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com To: Linus Torvalds In-Reply-To: List-Id: linux-fsdevel.vger.kernel.org On Thu, 2004-08-26 at 21:54, Linus Torvalds wrote: > The S_ISDIR/S_ISREG tests show real information: it shows not only user > intent ("you should consider this a file, even if it has attributes"), but > also whether it is a directory or a container. > > And there's a real technical difference there: the streams contained > within a file are bound to that file. The files contained within a > directory are _independent_ of that directory. Big difference. HUGE > difference. > > So it's not confusing. If it tests as a file, you think of it as a file. > It may have attributes aka named streams associated with it, and you may > be able to open those attributes by treating the file as a directory, but > that doesn't really change the fact that it's a file. What about the attributes/named streams of a directory though? If you open it as a directory, you would get the files inside the directory. So how do you get at the attributes and named streams of the directory itself using this interface? Best regards, Anton -- Anton Altaparmakov (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/