Re: NTFS-like streams?

From: Michael Poole (poole@troilus.org)
Date: Mon Aug 14 2000 - 14:37:37 EST


"Darrell Wright" <dwright@cookeng.com> writes:

> Why not just have the filesystem create a parallel directory structure for
> streams at the mount point. e.g. /mnt/fs and /mnt/streamfs . This way
> namespace is preserved and existing tools will still work. The streamsfs
> will contains a similar directory structure as the original but instead of
> files, will contain all streams. If there was a file /mnt/fs/WinNT/file
> there could also be a stream /mnt/streamfs/WinNT/file.

I can see three reasons easily:

First, namespace issues. What if the filesystem is your root
directory? How do you get at the streamset for it? (This is
relatively minor.)

Second, performance. Any time you want to see if a file is on such a
partition, you have to look at every directory from / down to the file
itself, and see if any of those are one half of a twin mount, before
you can decide. This gets even knottier if you have to handle
symlinks.

Third, principle of least surprise. If you move a file in one spot,
do the corresponding elements in the other fs also move? Do you have
any security issues related to race conditions because the two
filesystems are tied together?

Having parallel directory structures is an awkward solution at best.
Having them fork at the mount point combines some of the worst
features of the various proposals that have been floated.

-- Michael

-
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:34 EST