2004-09-14 08:37:20

by Helge Hafting

[permalink] [raw]
Subject: Re: silent semantic changes in reiser4 (brief attempt to document the idea ofwhat reiser4 wants to do with metafiles and why

Elladan wrote:

>
>>What's wrong with using / as the separator? It is already
>>used to separate components of pathnames. Named streams
>>are very much like files in a subdirectory.
>>
>>This scheme makes for very little change to existing tools,
>>users may then do a "gimp somefile/icon.jpg" for example.
>>Or "ls somefile/*" to see all the named streams/forks.
>>
>>
>
>Directories may have metadata as well.
>
>
They can. That doesn't stand in the way of using "/" to separate
the named stream's name from the file (or directory) that
have the attribute. "Directories may have metadata" pops
up now and then, and the solution is so blindlingly obvious
that nobody sees it.

A file-as-dir can be implemented as a rather normal directory
attached to the file's name. The stuff inside may
be interpreted as "attributes" or as something more file-like,
such as the often mentioned thumbnails.

What about a directory then? It _is_ a directory, so it
support named streams already. They are usually called "files". :-)
So, if you really want a thumb for your directory, just store a
thumb.jpg in it.

Helge Hafting