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?

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

Thanks again. I was hoping to avoid writing code just to set the EA but I
guess I’ll have to.

“Tony Mason” wrote in message news:xxxxx@ntfsd…
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

Well, you could always add it to Ladislav’s FileTest tool and then
you’ll be the last person who has to do it!

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:58 PM
To: ntfsd redirect
Subject: Re:[ntfsd] testing EA

Thanks again. I was hoping to avoid writing code just to set the EA but
I
guess I’ll have to.

“Tony Mason” wrote in message news:xxxxx@ntfsd…
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


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

The next time I am looking for “work avoidance” I’ll check it out.

“Tony Mason” wrote in message news:xxxxx@ntfsd…
Well, you could always add it to Ladislav’s FileTest tool and then
you’ll be the last person who has to do it!

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:58 PM
To: ntfsd redirect
Subject: Re:[ntfsd] testing EA

Thanks again. I was hoping to avoid writing code just to set the EA but
I
guess I’ll have to.

“Tony Mason” wrote in message news:xxxxx@ntfsd…
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


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

> Well, you could always add it to Ladislav’s FileTest tool

and then you’ll be the last person who has to do it!

Well, maybe I’ll do it, when I’ll get spare time.

L.

Ladislav Zezula wrote:

>Well, you could always add it to Ladislav’s FileTest tool
>and then you’ll be the last person who has to do it!

Well, maybe I’ll do it, when I’ll get spare time.

There appear to be two types of EA.

I *know* there are EAs on files in my sandbox for example, because (a) I
put them there, and (b) you can see them from from cygwin using ls, etc
(since they’re cygwin attributes).

OTOH I’ve downloaded apps in the past that claim to list EAs and can’t
do it, because they’re not ‘userspace’ EAs. The same apps can create
EAs but can only see the ones that they’ve created.

Tony