Re: NTFS-like streams?

From: wingel@t1.ctrl-c.liu.se
Date: Mon Aug 14 2000 - 03:16:08 EST


[replying to my self *sigh*]
I wrote:
>Files with alternate streams look exactly like normal files except
>that they also have a S_IFCOMPLEX flag and that one can use them as
>directories. When accessing such a file as a directory, it should
>act as a separate filesystem of its own, so that renames and links
>work inside this filesystem, but not outside it:

This introduces one new thing which is really incompatible with
POSIX filesystems, a file that can also act as a directory.

What is the basic reason why this directory can't live in a special
directory called ".fork"? So instead of doing "cd file-with-forks"
one does "cd .fork/file-with-forks"?

That would work on ext2, NFS or any POSIX like filesystem.

The disadvantage is that there will be a magic directory called
.fork (with the same permissions as the parent directory I suppose)
which can't be renamed or deleted. The subdirectories inside
the .fork-directory would have the same permissions as the
corresponding file and would have the same limitations as mounted
filesystems, no hardlinks outside of the directory. And if one
deletes or renames the parent, the .fork directory follows.

  /Christer

-- 
"Just how much can I get away with and still go to heaven?"

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



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:32 EST