Function implementation and optimization #377
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
GetVolumeInformationis in many scenarios called very frequently. Applications and drivers that call it typically expect it to return fast, with possibly cached data if the data does not change. So in your case, I would recommend that you simply cache this information at the first call and after that simply return the cached data.GetFileSecurityandSetFileSecuritycan returnNotImplementedif security descriptors are not preserved by the file system. Some other functions can returnNotImplementedif they are not used, for exampleFindStreamsis only required whenDokanOptions.AltStreamsis specified in drive options.