Hi all !
If FO_WRITE_THROUGH is set in FileObject->Flags, I cannot get the actual file size.
What I understand is that a cached write comes first with actual file size,
and then the cache manager flushes the file.
The second write request comes with the size of cluster.
In most case, FileSize and ValidDataLength in FCB are updated after the first request,
so we are using them when the second request comes.
However, if FO_WRITE_THROUGH is set, these values are not updated.
Only AllocationSize in FCB is updated.
Is it okay to rely on this data or is there any other way to get the actual size??
It was not a problem because usually EOF request comes after the write request.
In this case, there’s no EOF request.
So I need to know the file size when the second write request comes.
How can I know the actual file size?
Thanks in advance,
Nobuko