共用方式為


NTFS_STATISTICS_EX結構 (winioctl.h)

包含來自NTFS檔系統的統計資訊。此結構的支援從 Windows 10 開始。

語法

typedef struct _NTFS_STATISTICS_EX {
  DWORD     LogFileFullExceptions;
  DWORD     OtherExceptions;
  DWORDLONG MftReads;
  DWORDLONG MftReadBytes;
  DWORDLONG MftWrites;
  DWORDLONG MftWriteBytes;
  struct {
    DWORD Write;
    DWORD Create;
    DWORD SetInfo;
    DWORD Flush;
  } MftWritesUserLevel;
  DWORD     MftWritesFlushForLogFileFull;
  DWORD     MftWritesLazyWriter;
  DWORD     MftWritesUserRequest;
  DWORDLONG Mft2Writes;
  DWORDLONG Mft2WriteBytes;
  struct {
    DWORD Write;
    DWORD Create;
    DWORD SetInfo;
    DWORD Flush;
  } Mft2WritesUserLevel;
  DWORD     Mft2WritesFlushForLogFileFull;
  DWORD     Mft2WritesLazyWriter;
  DWORD     Mft2WritesUserRequest;
  DWORDLONG RootIndexReads;
  DWORDLONG RootIndexReadBytes;
  DWORDLONG RootIndexWrites;
  DWORDLONG RootIndexWriteBytes;
  DWORDLONG BitmapReads;
  DWORDLONG BitmapReadBytes;
  DWORDLONG BitmapWrites;
  DWORDLONG BitmapWriteBytes;
  DWORD     BitmapWritesFlushForLogFileFull;
  DWORD     BitmapWritesLazyWriter;
  DWORD     BitmapWritesUserRequest;
  struct {
    DWORD Write;
    DWORD Create;
    DWORD SetInfo;
    DWORD Flush;
  } BitmapWritesUserLevel;
  DWORDLONG MftBitmapReads;
  DWORDLONG MftBitmapReadBytes;
  DWORDLONG MftBitmapWrites;
  DWORDLONG MftBitmapWriteBytes;
  DWORD     MftBitmapWritesFlushForLogFileFull;
  DWORD     MftBitmapWritesLazyWriter;
  DWORD     MftBitmapWritesUserRequest;
  struct {
    DWORD Write;
    DWORD Create;
    DWORD SetInfo;
    DWORD Flush;
  } MftBitmapWritesUserLevel;
  DWORDLONG UserIndexReads;
  DWORDLONG UserIndexReadBytes;
  DWORDLONG UserIndexWrites;
  DWORDLONG UserIndexWriteBytes;
  DWORDLONG LogFileReads;
  DWORDLONG LogFileReadBytes;
  DWORDLONG LogFileWrites;
  DWORDLONG LogFileWriteBytes;
  struct {
    DWORD     Calls;
    DWORD     RunsReturned;
    DWORD     Hints;
    DWORD     HintsHonored;
    DWORD     Cache;
    DWORD     CacheMiss;
    DWORDLONG Clusters;
    DWORDLONG HintsClusters;
    DWORDLONG CacheClusters;
    DWORDLONG CacheMissClusters;
  } Allocate;
  DWORD     DiskResourcesExhausted;
  DWORDLONG VolumeTrimCount;
  DWORDLONG VolumeTrimTime;
  DWORDLONG VolumeTrimByteCount;
  DWORDLONG FileLevelTrimCount;
  DWORDLONG FileLevelTrimTime;
  DWORDLONG FileLevelTrimByteCount;
  DWORDLONG VolumeTrimSkippedCount;
  DWORDLONG VolumeTrimSkippedByteCount;
  DWORDLONG NtfsFillStatInfoFromMftRecordCalledCount;
  DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount;
  DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount;
} NTFS_STATISTICS_EX, *PNTFS_STATISTICS_EX;

成員

LogFileFullExceptions

由於記錄檔已滿而產生的例外狀況數目。

OtherExceptions

產生的其他例外狀況數目。

MftReads

主要檔案數據表上的讀取作業數目, (MFT) 。

MftReadBytes

從 MFT 讀取的位元組數目。

MftWrites

MFT 上的寫入作業數目。

MftWriteBytes

寫入 MFT 的位元元組數目。

MftWritesUserLevel

MftWritesUserLevel.Write

由於寫入作業而造成的 MFT 寫入數目。

MftWritesUserLevel.Create

由於建立作業而產生的 MFT 寫入數目。

MftWritesUserLevel.SetInfo

由於設定檔案資訊,MFT 寫入的數目。

MftWritesUserLevel.Flush

因排清作業而產生的 MFT 寫入數目。

MftWritesFlushForLogFileFull

因為記錄檔已滿而執行的 MFT 排清數目。

MftWritesLazyWriter

延遲寫入器線程執行的 MFT 寫入作業數目。

MftWritesUserRequest

保留的。

Mft2Writes

MFT 鏡像上的寫入作業數目。

Mft2WriteBytes

寫入 MFT 鏡像的位元組數目。

Mft2WritesUserLevel

Mft2WritesUserLevel.Write

由於寫入作業而造成的 MFT 鏡像寫入數目。

Mft2WritesUserLevel.Create

由於建立作業而產生 MFT 鏡像寫入的數目。

Mft2WritesUserLevel.SetInfo

由於設定檔案資訊,MFT 鏡像寫入的數目。

Mft2WritesUserLevel.Flush

因排清作業而產生的 MFT 鏡像寫入數目。

Mft2WritesFlushForLogFileFull

因為記錄檔已滿而執行的 MFT 鏡像排清數目。

Mft2WritesLazyWriter

延遲寫入器線程執行的 MFT 鏡像寫入作業數目。

Mft2WritesUserRequest

保留的。

RootIndexReads

根索引上的讀取作業數目。

RootIndexReadBytes

從根索引讀取的位元組數目。

RootIndexWrites

根索引上的寫入作業數目。

RootIndexWriteBytes

寫入根索引的位元組數目。

BitmapReads

叢集配置位圖上的讀取作業數目。

BitmapReadBytes

從叢集配置位圖讀取的位元元數目。

BitmapWrites

叢集配置位圖上的寫入作業數目。

BitmapWriteBytes

寫入叢集配置位陣陣圖的位元組數目。

BitmapWritesFlushForLogFileFull

因為記錄檔已滿而執行的點陣圖排清數目。

BitmapWritesLazyWriter

延遲寫入器線程執行的點陣圖寫入作業數目。

BitmapWritesUserRequest

保留的。

BitmapWritesUserLevel

BitmapWritesUserLevel.Write

由於寫入作業而寫入的點陣圖寫入數目。

BitmapWritesUserLevel.Create

由於建立作業而寫入的點陣圖數目。

BitmapWritesUserLevel.SetInfo

由於設定檔案資訊,位圖寫入的數目。

BitmapWritesUserLevel.Flush

因為排清作業而寫入的點陣圖數目。

MftBitmapReads

MFT 位圖上的讀取作業數目。

MftBitmapReadBytes

從 MFT 位圖讀取的位元元數目。

MftBitmapWrites

MFT 位圖上的寫入作業數目。

MftBitmapWriteBytes

寫入 MFT 位圖的位元元組數目。

MftBitmapWritesFlushForLogFileFull

因為記錄檔已滿而執行的 MFT 位圖排清數目。

MftBitmapWritesLazyWriter

延遲寫入器線程執行的 MFT 位圖寫入作業數目。

MftBitmapWritesUserRequest

保留的。

MftBitmapWritesUserLevel

MftBitmapWritesUserLevel.Write

由於寫入作業而寫入的 MFT 位圖寫入數目。

MftBitmapWritesUserLevel.Create

由於建立作業而寫入的點陣圖數目。

MftBitmapWritesUserLevel.SetInfo

由於設定檔案資訊,位圖寫入的數目。

MftBitmapWritesUserLevel.Flush

因為排清作業而寫入的點陣圖數目。

UserIndexReads

使用者索引上的讀取作業數目。

UserIndexReadBytes

從使用者索引讀取的位元組數目。

UserIndexWrites

使用者索引上的寫入作業數目。

UserIndexWriteBytes

寫入使用者索引的位元組數目。

LogFileReads

記錄檔上的讀取作業數目。

LogFileReadBytes

從記錄檔讀取的位元組數目。

LogFileWrites

記錄檔上的寫入作業數目。

LogFileWriteBytes

寫入記錄檔的位元組數目。

Allocate

Allocate.Calls

配置叢集的個別呼叫數目。

Allocate.RunsReturned

用來滿足所有要求的執行次數。

Allocate.Hints

指定提示的次數。

Allocate.HintsHonored

提示很有用的次數。

Allocate.Cache

快取在提示以外的實用次數。

Allocate.CacheMiss

快取無效的次數。

Allocate.Clusters

配置的叢集數目。

Allocate.HintsClusters

透過提示配置的叢集數目。

Allocate.CacheClusters

透過提示以外的快取配置的叢集數目。

Allocate.CacheMissClusters

未快取配置的叢集數目。

DiskResourcesExhausted

嘗試取得平板記憶體以用於目前精簡布建磁碟區的失敗嘗試次數。

VolumeTrimCount

發出的磁碟區層級修剪作業數目。

VolumeTrimTime

所有磁碟區層級修剪作業期間經過的總時間。 此值除以 QueryPerformanceFrequencyKeQueryPerformanceCounter 的頻率值,將會以秒為單位提供時間。

VolumeTrimByteCount

所有磁碟區層級修剪作業所發出的位元組總數。

FileLevelTrimCount

發出的檔案層級修剪作業數目。

FileLevelTrimTime

所有檔案層級修剪作業期間經過的總時間。 此值除以 QueryPerformanceFrequencyKeQueryPerformanceCounter 的頻率值,將會以秒為單位提供時間。

FileLevelTrimByteCount

所有檔案層級修剪作業所發出的位元組總數。

VolumeTrimSkippedCount

磁碟區層級修剪作業在透過記憶體堆疊向下傳送之前中止的次數。

VolumeTrimSkippedByteCount

因為略過磁碟區層級修剪作業而未透過磁碟區層級修剪作業傳送的位元組數目。

NtfsFillStatInfoFromMftRecordCalledCount

NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount

NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount

備註

MFT、MFT 鏡像、根索引、使用者索引、點陣圖和 MFT 位圖會計算為元數據檔。 記錄檔不會算為元數據檔。

測量的讀取和寫入作業數目是分頁作業的數目。

規格需求

需求
最低支援的用戶端 Windows 10 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2016 [僅限傳統型應用程式]
標頭 winioctl.h (包含 Windows.h)

另請參閱

FILESYSTEM_STATISTICS

KeQueryPerformanceCounter

QueryPerformanceFrequency