Hi all,
In my following code in IRP_MJ_DIRECTORY_CONTROL
pudtDirectoryInformation->EndOfFile->QuadPart is not returning my file
size.I am changing my file size by manipulating this data.
PFILE_BOTH_DIR_INFORMATION pudtDirectoryInformation =
NULL;
if(IRP_MN_QUERY_DIRECTORY == Data->Iopb->MinorFunction)
{
if(FileBothDirectoryInformation ==
Data->Iopb-Parameters.DirectoryControl.QueryDirectory.FileInformationClass)
{
pudtDirectoryInformation =
Data->Iopb->Parameters.DirectoryControl.QueryDirectory.DirectoryBuffer;
}
}
Kindly let me know if I am doing anything wrong here .I think
pudtDirectoryInformation structure is not filled properly as
Data->Iopb-Parameters.DirectoryControl.QueryDirectory.Length is showing
different value than
Sizeof(FILE_BOTH_DIRECTORY_INFORMATION).
Thanks and regards,
Ruhina
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, March 21, 2006 6:24 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] File size mismatch
You’ll need to fix it in the directory entry
(IRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY) so that the size of the
file does match the size of the directory entry.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the next OSR File Systems class in Boston,
MA April 18-21, 2006.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of ruhina
Sent: Tuesday, March 21, 2006 12:27 AM
To: ntfsd redirect
Subject: [ntfsd] File size mismatch
Hi All,
My minifilter is changing the file size first of all by writing some data
and then striping of the same data.
But applications like WINZIP and Visual are unable to zip or open those
files due to file size mismatch.It is because they are reading file size
from different location. The file size reported after file open
(IRP_MJ_QUERY_INFORMATION)does not match the file size in the directory
entry (IRP_MJ_QUERY_DIRECTORY).
Could anybody please help me how can I communicate my changed file size to
these Applications.I am in urgent need of this solution
Thanks in advance,
Ruhina
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com