Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268752AbUIGW70 (ORCPT ); Tue, 7 Sep 2004 18:59:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268753AbUIGW7P (ORCPT ); Tue, 7 Sep 2004 18:59:15 -0400 Received: from warden-p.diginsite.com ([208.29.163.248]:32956 "HELO warden.diginsite.com") by vger.kernel.org with SMTP id S268752AbUIGW5a (ORCPT ); Tue, 7 Sep 2004 18:57:30 -0400 From: David Lang To: Christer Weinigel Cc: Hans Reiser , David Masover , Horst von Brand , Spam , Tonnerre , Linus Torvalds , Pavel Machek , Jamie Lokier , Chris Wedgwood , viro@parcelfarce.linux.theplanet.co.uk, Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lyamin aka FLX , ReiserFS List Date: Tue, 7 Sep 2004 15:56:08 -0700 (PDT) X-X-Sender: dlang@dlang.diginsite.com Subject: Re: silent semantic changes with reiser4 In-Reply-To: Message-ID: References: <200409070206.i8726vrG006493@localhost.localdomain><413D4C18.6090501@slaphack.com> <413DFF33.9090607@namesys.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2039 Lines: 58 On Tue, 8 Sep 2004, Christer Weinigel wrote: > Subject: Re: silent semantic changes with reiser4 > > David Lang writes: > >> so far the best answer that I've seen is a slight varient of what Hans >> is proposing for the 'file-as-a-directory' >> >> make the base file itself be a serialized version of all the streams >> and if you want the 'main' stream open file/. (or some similar >> varient) > >> in fact it may make sense to just open file/file to get at the 'main' >> stream of the file (there may be cases where the concept of a single >> main stream may not make sense) > > So what happens if I have a text file foo.txt and add an author > attribute to it? When I read foo.txt the next time it's supposed to > give me a serialized version with both the contents of foo.txt _and_ > the author attribute? > > That would definitely confuse me. > > Or did I misunderstand something? > good point. under my scheme you would need to access foo.txt/foo.txt or foo.txt/. instead of just foo.txt I guess my way would work if there is a way to know that a file has been extended (or if you just make it a habit of opening the file/file instead of just file) but not for random additions of streams to otherwise normal files. Oh well, it seemed like a easy fix (and turned out to be to easy to be practical) David Lang > /Christer > > -- > "Just how much can I get away with and still go to heaven?" > > Freelance consultant specializing in device driver programming for Linux > Christer Weinigel http://www.weinigel.se > -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/