Imagine the scenario:
- file is set to delete-on-close
- file is mmapped
- handle is closed
cleanup path calls MmCanFileBeTruncated, gets FALSE since a view exists, and does not truncate - section is unmapped
Will it be the close path who will do the on-delete truncation of this file?
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com