Re: silent semantic changes in reiser4 (brief attempt to document the idea of what reiser4 wants to do with metafiles and why

From: V13
Date: Tue Aug 31 2004 - 13:01:09 EST


On Sunday 29 August 2004 23:21, Hans Reiser wrote:
> The Idea
>
> You should be able to access metadata about a file the same way you
> access the file's data, but with a name based on the filename followed
> by a name to select the metadata of interest.
>
> Examples:
>
> cat song_of_silence/metas/owner
> cat song_of_silence/metas/permissions
> cat 10 > song_of_silence/metas/mixer_defaults/volume
> cat song_of_silence/metas/license

Maybe I'm crazy but:

You're talking about a major change in the way filesystems work if this is
going to be used by other FSs too. If I understand this correctly it is a
completely new thing and trying to do it by patching existing well-known
'primitives' may be wrong.

AFAIK and AFAICS the metadata are not files or directories. You can look at
them as files/dirs but they are not, just like a tar is not a directory. I
believe that the correct thing to do (tm) is to add a new 'concept' named
'metadata' (which already exists). This way you'll have files, directories
and metadata (or whatever you call them). So, each directory can have
metadatas and files and each file can have metadatas. Then you have to
provide some new methods of accessing them and not to use chdir() etc. (lets
say chdir_meta() to enter the meta dir which will work for files too). After
entering the 'metadir' you'll be able to use existing methods etc to access
its 'files'.

This approach doesn't mess with existing things and can be extended for
other filesystems too.

(Just a thought)

<<V13>>
-
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/