When I try to extended the contents of a file opened by notepad, then save
the file to the disk.
The IRP_MJ_SET_INFORMATION dispatch handler is called with a
FileEndOfFileInformation request. I am using the same
FileEndOfFileInformation routine from the fastfat sample.
for some reason the NewFileSize = Buffer->EndOfFile.LowPart is exactly the
same as FcB->Header.FileSize.lowpart… which indicates that the filesize in
the dirent doesnt need physically changing…
so I am confused as to when the filesize needs to be physically changed in
the dirent!!
I’ve noticed that when you reboot the PC, the file returns back to its
original file size, so there’s obviously something funny going on with the
cachemanager with respect to the way it handles the endoffile info which I
don’t know about.
could someone shed some light as to what’s going on, and when exactly I need
to change the filesize on the disk?
thanks in advance
James Dunning
General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA