Hi All,
Can WRITE requests that are forced to be non-cached by using the above
IRP flag and massaging the write buffer and data to be sector size
aligned be okay for extending a file?
One reason is that if the request extends the file size
by doing this, I have seen NTFS.sys raise an exception STATUS_CANT_WAIT.
Is the above only valid as long as the file size is not modified or
should the request be synchronous in this specific case (size change)?
If that is not correct, should I flush and purge the cache before the
last
block of data is written at the end of the file first, or extend the
file first, then write the block (now within the file size), and then
reset the
file size once the write is done?
Thanks
Steve