Re: NTFS-like streams?

From: Kai Henningsen (kaih@khms.westfalen.de)
Date: Sun Aug 13 2000 - 05:40:00 EST


torvalds@transmeta.com (Linus Torvalds) wrote on 12.08.00 in <8n4d8u$2ik$1@penguin.transmeta.com>:

> And usability concerns _are_ real concerns. I'm claiming that the best
> interface for such a filesystem would be
>
> open("file", O_RDONLY) - opens the default fork
> open("file/Icon", O_RDONLY) - opens the Icon fork
> open("file/Creator"...
>
> readdir("file") - lists the resources that the file has

That's a very different semantic from what MacOS does, and looks like a
pretty poor match for the data structures involved.

To start with, the creator is an attribute much like the user and group
under Linux, and is *not* implemented via resource forks. So it really
doesn't belong here, it belongs in a fs-specific stat() extension
(possibly an ioctl).

Then, the structure is either low-level
        open("file/resourcefork", O_RDONLY)
- which you *can* do on MacOS (just with a different function instead of a
different name) - or for individual resources, it's more like
        open("file/ICON/-16383", O_RDONLY)
Yes, there's a hierarchy involved.

MfG Kai

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