[Bug Report] cfapi: CreateFileMapping causes full placeholder hydration ignoring CF_HYDRATION_POLICY_PROGRESSIVE
Max
1
Reputation point
Hi! My company is on the verge of releasing an update to our Sync Engine implementation with PROGRESSIVE hydration support and we recently found out that its not working properly with file mapping, i.e. any call to CreateFileMapping causes full hydration of a placeholder by the Platform no matter what region is specified and ignoring the fact that no data access has happened yet. Are there any plans to make it work? Thanks
Minimal reproducible sample: https://github.com/Maksim-Isakau/CloudTest/tree/create-file-mapping-report
Cloud sample test!
Succesfully called AddFolderToSearchIndexer on "file:///C:\Users\max\AppData\Local\Temp\cf-9124.tmp-dir"
platform version is 22621.2506.1552
TestSimpleRead: read first 4096 using ReadFile api
OnFetchData from:\Device\HarddiskVolume6\repos\CloudTest\x64\Debug\CloudTest.exe offset:0 len:4096
TestSimpleRead done
TestFileMapping: read first 4096 using CreateFileMapping and MapViewOfFile api
OnFetchData from:\Device\HarddiskVolume6\repos\CloudTest\x64\Debug\CloudTest.exe offset:0 len:134217728
TestFileMapping done
Windows development | Windows API - Win32
Sign in to answer