Currently GetNumberOfPages will read the number of pages directly from disk. This is incorrect usage, if the file has dirty pages stored in the cache (specifically new dirty pages).
I'm not sure what the best way to handle it is, maybe check to see if there are any new dirty pages before returning the final page count?
Currently GetNumberOfPages will read the number of pages directly from disk. This is incorrect usage, if the file has dirty pages stored in the cache (specifically new dirty pages).
I'm not sure what the best way to handle it is, maybe check to see if there are any new dirty pages before returning the final page count?