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.
GetVolumeInformation
is 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.GetFileSecurity
andSetFileSecurity
can returnNotImplemented
if security descriptors are not preserved by the file system. Some other functions can returnNotImplemented
if they are not used, for exampleFindStreams
is only required whenDokanOptions.AltStreams
is specified in drive options.