lkml.org 
[lkml]   [2000]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NTFS-like streams?
"Theodore Y. Ts'o" wrote:

> For example, suppose you have an EA:
>
> Creator=tytso
>
> Now suppose you do the following:
>
> fd = open("~/Myfile/Creator")
> write(fd, "acox", 4);
> close(fd)
>
> What does the EA contain now? Is it:
>
> Creator=acoxo
>
> or is it
>
> Creator=acox




NT Services for Macintosh actually implements
all resource-fork data in one stream, and provides
structured storage (prob. just a hash table, but I
don't really know) to do it in. It doesn't map
each EA to a separate stream. But, we'll play
your game for a moment. The correct answer is
B, "acox". It doesn't make sense to do anything
but wipe out what is there and replace it when
doing EAs on top of named streams, with a 1:1 EA:NS
mapping. Leaving what is there and overwriting part of
it isn't how EAs work, and isn't how EAs on NSes have
to work.

-M

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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.481 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site