Compartilhar via


FSD_VOLUME_INFO (Compact 2013)

3/26/2014

This structure is used with the files sytem driver (FSD) function FSD_GetVolumeInfo to report information to the OS. The storage manager uses the data returned by this function in the FSD_VOLUME_INFO structure to report file system information to applications with the CeGetVolumeInfo function.

Syntax

typedef struct _FSD_VOLUME_INFO {
  DWORD cbSize;
  DWORD dwFSVersion; 
  TCHAR szFSDDesc[MAX_FSD_DESCRIPTOR];
  TCHAR szFSDSubType[MAX_FSD_DESCRIPTOR];
  DWORD dwAttributes;
  DWORD dwBlockSize;
  DWORD dwFlags;
} FSD_VOLUME_INFO, *PFSD_VOLUME_INFO;

Members

  • cbSize
    Set to sizeof(FSD_VOLUME_INFO).
  • dwFSVersion
    Version of the file system to which this FSD conforms.
  • szFSDDesc
    Currently ignored. FSD name, such as FAT or UDFS.
  • szFSDSubType
    Currently ignored. Subtype of the FSD, if applicable, such as FAT12, FAT16, or FAT32.
  • dwAttributes
    Bitmask that contains file system attribute values. The following table shows possible values.

    Value

    Description

    FSD_ATTRIBUTE_READONLY

    The volume is read only.

    FSD_ATTRIBUTE_XIP

    The volume supports execute-in-place (XIP) from the file system.

  • dwBlockSize
    Optimal block size for I/O operations. For FAT, this is the cluster size.
  • dwFlags
    Information values. The following table shows possible values.

    Flag

    Value

    Description

    FSD_FLAG_TRANSACTION_SAFE

    0x1

    The volume supports transaction safe operations. This indicates that the file system meta-data is not corrupted by a power loss.

    FSD_FLAG_TRANSACT_WRITES

    0x2

    The volume supports transaction-safe WriteFile operations. This indicates that the file system metadata is not corrupted by a power loss.

    FSD_FLAG_WFSC_SUPPORTED

    0x4

    The FSD supports the MyFSD_WriteFileGather and the MyFSD_ReadFileScatter functions.

    FSD_FLAG_LOCKFILE_SUPPORTED

    0x8

    The FSD supports the MyFSD_LockFileEx and the MyFSD_UnLockFileEx functions.

    FSD_FLAG_NETWORK

    0x10

    The FSD is a network file system.

    FSD_FLAG_FILE_CACHE_SUPPORTED

    0x200

    The FSD supports file cache and cache manager functionality.

Requirements

Header

fsdmgr.h

See Also

Reference

FSD Structures
FSD_GetVolumeInfo