Hello everybody,
I’ve got a simple question for the NTFS experts about NTFS alternate
datastreams, ntfs attributes and how they can be accessed. I’ve already
checked some old threads in the list and found some controversial
statements. I would like to use ADS to replace EAs in our software.
First, here is my understandig how alternate data streams and ntfs
attributes are adressed.
This is how an NTFS filename looks like:
[path][file.ext]:[ads-name]:[ntfs-attr-name]
Example:
foo.dat:ads1:$DATA
Now the question:
Can I create a new NTFS attribute such as
foo.dat:ads1:LARS
or (using the default data stream)
foo.dat::LARS ?
In my understanding the ntfs-attributes (with some exceptions like $DATA)
are internal to NTFS, so I should not be able to create my own
ntfs-attributes, right ?
I can create a new data stream (something like “foo.dat:LARS:$DATA”) but I
would prefer the ntfs attribute solution. (Writing to an alternate data
stream causes the last write time of the to change, which can in fact be
very annoying).
Thanks for any help or comments in advance,
With best regards,
Lars