Export (0) Print
Expand All
Expand Minimize

FsRtlGetSectorSizeInformation routine

The FsRtlGetSectorSizeInformation routine retrieves the physical and logical sector size information for a storage volume.

Syntax


NTSTATUS FsRtlGetSectorSizeInformation(
  _In_   PDEVICE_OBJECT RealDevice,
  _Out_  PFILE_FS_SECTOR_SIZE_INFORMATION SectorSizeInfo
);

Parameters

RealDevice [in]

The target device object for a storage device.

SectorSizeInfo [out]

A pointer to a caller supplied FILE_FS_SECTOR_SIZE_INFORMATION structure.

Return value

FsRtlGetSectorSizeInformation returns STATUS_SUCCESS if the sector size information is returned in SectorSizeInfo. Otherwise, another appropriate NTSTATUS value is returned such as the following.

Return codeDescription
STATUS_BAD_DEVICE_TYPE

The storage device reported an invalid sector size.

 

Remarks

This routine is used by file system drivers to retrieve sector size information from the storage device containing the volume. A file system driver typically maintains the device object sent in RealDevice in its volume parameter block (VPD) for the storage volume.

Drivers other than file system drivers, can query sector size information using the FltQueryVolumeInformation or ZwQueryVolumeInformationFile routines, or by sending an IRP_MJ_QUERY_VOLUME_INFORMATION request and specifying FileFsSectorSizeInformation as the file system information class.

Requirements

Version

Available in starting with Windows 8.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

See also

FltQueryVolumeInformation
ZwQueryVolumeInformationFile
FILE_FS_SECTOR_SIZE_INFORMATION
IRP_MJ_QUERY_VOLUME_INFORMATION

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft