FileEndOfFileInformation

I am seeing unexpected (to me) behaviour in filter driver over NTFS. After
user applications closes the file and all paging i/o has dealt with data,
there is IRP_MJ_SET_INFORMATION FileEndOfFileInformation. I was hoping to
use this to get the real length of the file since. When the size of the
file written is less than one page then the EndOfFile is always 4096; but
when the size of more than one page then the EndOfFile is as expected. Can
anyone tell me if this is what I should expect? Should I look elsewhere
for the real length of the file?

Thanks in advance.
Lyndon

Ignore the FileEndOfFileInformation request if IRP_PAGING_IO is set.

-----Original Message-----
From: Lyndon J. Clarke [mailto:xxxxx@gcplc.com]
Sent: Friday, April 05, 2002 10:01 AM
To: File Systems Developers
Subject: [ntfsd] FileEndOfFileInformation

I am seeing unexpected (to me) behaviour in filter driver over NTFS. After
user applications closes the file and all paging i/o has dealt with data,
there is IRP_MJ_SET_INFORMATION FileEndOfFileInformation. I was hoping to
use this to get the real length of the file since. When the size of the
file written is less than one page then the EndOfFile is always 4096; but
when the size of more than one page then the EndOfFile is as expected. Can
anyone tell me if this is what I should expect? Should I look elsewhere
for the real length of the file?

Thanks in advance.
Lyndon


You are currently subscribed to ntfsd as: xxxxx@inin.com
To unsubscribe send a blank email to %%email.unsub%%

Actually he should be checking if
pIrpSp->Parameters.SetFile.AdvanceOnly is set (and
ignore the request in this case). Fastfat at least
doesn’t care if IRP_PAGING_IO is set during a
FileEndOfInformation call.

— “Fuller, Rob” wrote:
> Ignore the FileEndOfFileInformation request if
> IRP_PAGING_IO is set.
>
> -----Original Message-----
> From: Lyndon J. Clarke [mailto:xxxxx@gcplc.com]
> Sent: Friday, April 05, 2002 10:01 AM
> To: File Systems Developers
> Subject: [ntfsd] FileEndOfFileInformation
>
>
> I am seeing unexpected (to me) behaviour in filter
> driver over NTFS. After
> user applications closes the file and all paging i/o
> has dealt with data,
> there is IRP_MJ_SET_INFORMATION
> FileEndOfFileInformation. I was hoping to
> use this to get the real length of the file since.
> When the size of the
> file written is less than one page then the
> EndOfFile is always 4096; but
> when the size of more than one page then the
> EndOfFile is as expected. Can
> anyone tell me if this is what I should expect?
> Should I look elsewhere
> for the real length of the file?
>
> Thanks in advance.
> Lyndon
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@inin.com
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@nryan.com
> To unsubscribe send a blank email to
%%email.unsub%%

=====
- Nicholas Ryan

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/