Type Alias winfsp_sys::FSP_FILE_SYSTEM_OPERATION_GUARD_STRATEGY
source · pub type FSP_FILE_SYSTEM_OPERATION_GUARD_STRATEGY = c_int;
Expand description
User mode file system locking strategy.
Two concurrency models are provided:
- A fine-grained concurrency model where file system NAMESPACE accesses are guarded using an exclusive-shared (read-write) lock. File I/O is not guarded and concurrent reads/writes/etc. are possible. [Note that the FSD will still apply an exclusive-shared lock PER INDIVIDUAL FILE, but it will not limit I/O operations for different files.]
The fine-grained concurrency model applies the exclusive-shared lock as follows:
- EXCL: SetVolumeLabel, Flush(Volume), Create, Cleanup(Delete), SetInformation(Rename)
- SHRD: GetVolumeInfo, Open, SetInformation(Disposition), ReadDirectory
- NONE: all other operations
- A coarse-grained concurrency model where all file system accesses are guarded by a mutually exclusive lock.
@see FspFileSystemSetOperationGuardStrategy