Why not SET an EA on the file? Then you’d have a file with EAs on it.
Fewer and fewer things use EAs at this point. Dfs used them in W2K but
has switched to reparse points in W2K3 (note that EAs and reparse points
are mutually exclusive).
The point about EAs being streams is an implementation detail, not a
general “we make this visible to the user” detail.
EAs are supported on FAT-12 and FAT-16 but not on FAT-32. The
implementation isn’t anything to write home about - a file in the root
directory (you can see this in the FAT source code in the IFS Kit by the
way…)
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Thursday, August 11, 2005 2:35 PM
To: ntfsd redirect
Subject: [ntfsd] testing EA
Can someone tell me how to add extended attributes to a file so I can
test
my EA code? I’ve googled it and many places say that the summary pane
in
explorer’s properties uses EA, but I’ve tried that and it generates
alternative data streams, not EA. I’ve also seen comments that EA is
implemented in alternative data streams but that is incorrect also. EA
uses
one-byte names and streams use unicode.
One message referred to CVSNT as using EA but I installed that and ran
it
and I can’t fnd any EA (unless my code is wrong). Here is my EA code:
fileHandle = CreateFileW ( FileName, FILE_READ_EA,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, 0 );
status = NtQueryEaFile( fileHandle, &ioStatus, qbuf,
sizeof(FILE_FULL_EA_INFORMATION), TRUE, NULL, 0, &QueryEAIndex, FALSE );
A seperate question: Is EA supported on FAT?
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com