FSDMGR Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the File System Disk Manager (FSDMGR) functions with a description of the purpose of each.

Function Description

FSDMGR_AcquireFileLock

Helper function provided by FSDMGR to simplify the implementation of the MyFSD_LockFileEx function in an FSD.

FSDMGR_CachedRead

If the specified block is cached, this function copies data from the cache into a buffer.

If the specified block is not cached, this function reads the data from the disk and copies it into a buffer along with the cache.

FSDMGR_CachedWrite

For a write-through cache, writes data to disk and to the cache.

For a write-back cache, writes data only to the cache and allows the lazy-writer thread to commit the data to the disk.

FSDMGR_CacheIoControl

Sends a custom I/O control to the cache.

FSDMGR_CreateCache

Creates a new cache.

FSDMGR_CreateFileHandle

Called by an FSD to create a handle for a specified file.

FSDMGR_CreateSearchHandle

Creates search or find handles. It is called by an FSD.

FSDMGR_DeleteCache

Deletes the cache.

FSDMGR_DeregisterVolume

Unregisters a volume.

FSDMGR_DeviceHandleToHDSK

Converts a true device handle into an HDSK for use in subsequent calls to the FSDMGR helper functions.

FSDMGR_DiskIoControl

Called by an FSD to access DeviceIoControl functions exported by a block driver.

FSDMGR_EmptyLockContainer

Helper function provided by FSDMGR to free all blocked threads waiting to lock a specified file.

FSDMGR_FlushCache

Commits dirty blocks in the cache to the disk.

FSDMGR_GetDiskInfo

Called by an FSD to obtain disk information.

FSDMGR_GetRegistryFlag

Called by an FSD to read a flag, based on a value from the registry.

FSDMGR_GetRegistryString

Called by an FSD to read a string value from the registry.

FSDMGR_GetRegistryValue

Called by an FSD to read a numeric value from the registry.

FSDMGR_GetVolumeName

Obtains the name of a volume, given its handle.

FSDMGR_InstallFileLock

Is the Lock Manager implementation of LockFileEx.

FSDMGR_ReadDisk

Reads sectors from a disk.

FSDMGR_ReadDiskEx

Reads sectors from a disk into discontinuous buffers.

FSDMGR_RegisterVolume

Registers a volume on a disk.

FSDMGR_RemoveFileLock

Helper function provided by FSDMGR to simplify the implementation of the MyFSD_UnLockFileEx function in an FSD.

FSDMGR_RemoveFileLockEx

Unlocks the file specified by the handle.

FSDMGR_ResizeCache

Resizes a cache.

FSDMGR_SyncCache

Updates the cache by reading from the disk for each cache block while maintaining the mapping between a cache block and a disk block.

FSDMGR_TestFileLock

Authorizes read or write requests.

FSDMGR_TestFileLockEx

Authorizes read or write requests; includes ability to override the current file position.

FSDMGR_WriteDisk

Writes sectors to a disk.

FSDMGR_WriteDiskEx

Writes sectors to a disk from discontinuous buffers.

See Also

Reference

FSD Reference