Skip to content

Is it possible to preemptively provide file data? #84

Answered by cgallred
ZabirHoque asked this question in Q&A
Discussion options

You must be logged in to vote

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 a dataStreamId value, associates it with the user's FILE_OBJECT, and sends the PRJ_GET_FILE_DATA_CB callback. 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZabirHoque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants