How do you call FltQueryEaFile? [btw, this fn is supported Srv03 SP1 -
otherwise you need to use FltAllocateCallbackData+FltPerformSynchronousIo]
What I do:
FILE_EA_INFORMATION fileEA = {0};
NTSTATUS status = FltQueryInformationFile( pInstance, pOrigFO, &fileEA,
sizeof( fileEA ), FileEaInformation, &uLen );
if ( NT_SUCCESS( status ) && uLen && fileEA.EaSize ) {
PVOID pBuffer = myPagedAlloc( fileEA.EaSize );
if ( pBuffer ) {
status = MyFltQueryEaFile( pInstance, pOrigFO, pBuffer,
fileEA.EaSize, FALSE, NULL, 0, 0, TRUE, &uLen );
…
hope it helps,
Petr
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of DHIRENDRA ram
Sent: Monday, March 07, 2011 1:23 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] fltqueryeafile getting failed
Hi,
I am writing a minifilter that store some extended attributes when a
file is created and read them for every read and write calls. I am handling
only non cached io calls . But when I try to read the extended attributes,
the call fails with status “STATUS_INVALID_PARAMETER”. I am not able to
understand why this may be happening and would appreciate any help with
this.
Thanks,
Dhirendra
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer