Re: silent semantic changes in reiser4 (brief attempt to documentthe idea ofwhat reiser4 wants to do with metafiles and why

From: Helge Hafting
Date: Tue Sep 14 2004 - 03:39:25 EST


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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/