Re: NTFS-like streams?

From: Miquel van Smoorenburg (miquels@cistron.nl)
Date: Fri Aug 11 2000 - 15:22:43 EST


In article >Pine.LNX.4.10.10008111513300.1913-100000@aviro.devel.redhat.com>,
Alexander Viro <aviro@redhat.com> wrote:
>On Fri, 11 Aug 2000, Jeff V. Merkey wrote:
>
>> i.e. The NTFS method is filename:attribute_name. This means folks just
>> append :attr_name to the filename to tell the underlying FS to open an
>> alernate attribute file.
>
> If you want to see some seriously scary code - look at the HFS
>handling of that stuff. And no, I would not bet a dime that it's done
>correctly. The main problem is that rename(), unlink(), etc. are too
>fine-grained for such beasts.

Can't you define such files as directories ? "ls" would show
them as plain files, open() would open ("file/data"), you could
chdir() into them and stat() would return S_ISMULTI if the file has
more than one fork so that tar and cp work correctly.

Mike.

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