Is it possible to preemptively provide file data? #84
-
|
ATM, I'm preemptively populating files by running a separate daemon process that touches desired files. I'm wondering if there is a more efficient way to do this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Placeholders can be preemptively laid down with |
Beta Was this translation helpful? Give feedback.
Placeholders can be preemptively laid down with
PrjWritePlaceholderInfo/PrjWritePlaceholderInfo2, but files can't be preemptively hydrated in the same way. When a user tries to read a non-hydrated placeholder, the ProjFS file system filter driver generates adataStreamIdvalue, associates it with the user's FILE_OBJECT, and sends thePRJ_GET_FILE_DATA_CBcallback. The hydration mechanism uses that FILE_OBJECT to write the data. There isn't currently a way to get such a FILE_OBJECT outside the regular hydration path that your daemon triggers.