From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-type: text/plain; charset=utf8 Date: Wed, 10 Jun 2009 20:44:09 -0700 From: "Roman V. Shaposhnik" In-reply-to: <14ec7b180906091027g4c060b5egf0e15265289e5ee6@mail.gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-id: <1244691849.4563.8.camel@goose.sun.com> References: <1244567653.9958.1733.camel@work> <14ec7b180906091027g4c060b5egf0e15265289e5ee6@mail.gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Different representations of the same file/resource in a synthetic FS Topicbox-Message-UUID: 08b7a5f8-ead5-11e9-9d60-3106f5b1d025 =D0=92 =D0=92=D1=82=D1=80, 09/06/2009 =D0=B2 11:27 -0600, andrey mirtchov= ski =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > I think I've mentioned this before, but on a few of my synthetic file > systems here I'm using what you describe to slice a database by > specific orderings. For example, I have a (long) list of resources > which I'm managing in a particular environment each has an owner, > type, status and a few static data containers. It's all backed by a > relational database, but the file server presents different "slices" > of that to external users, where the directory structure is rigidly > defined as: >=20 > / > available/ > by-type/ > by-owner/ > inuse/ > ... >=20 > with all data to fill the directories being dynamically pulled from > the database. This looks like a slightly different use case than what I'm worried about. Mainly it seems that you don't really have to deal with the representations of the same resource, your problem is how to group these resources in a reasonable fashion. Essentially you're mapping a relational database to a tree hierarchy. In your case, the sooner you have the fork of by-this/ by-that/ .... in your hierarchy -- the better. My case is a flip side of that. In fact, my worst case scenario is that I can't really predict all the representations of existing resources down the road, thus it appears that I have to push that part of a filename as close to an actual file as possible: /long-path/file. I'm almost tempted to consider "virtual extensions": /long-path/file ## default representation /long-path/file.gif .... /long-path/file.pdf but at that point it becomes no more appealing than the content negotiation techniques of HTTP. Thanks, Roman.