refsutil leak
The refsutil leak command assists administrators in detecting and diagnosing storage leaks, which occur when storage space is consumed inefficiently or unnecessarily. Windows commands reference
On Windows
Windows
The refsutil leak command assists administrators in detecting and diagnosing storage leaks, which occur when storage space is consumed inefficiently or unnecessarily. When the specified Resilient File System (ReFS) volume is scanned, this command identifies the location and size of leaks, helping to optimize storage usage and maintain system performance.
refsutil leak <drive> [/a] [/x] [/v] [/d] [/q] [/t <count>] [/s <file>]
To perform a leak analysis and generate a detailed report using F:\Scratch.tmp as the temporary file using 6 CPU threads, run this command
refsutil leak D: /a /t 6 /s F:\Scratch.tmpIdentify/aIf leak detection discovers corruption, this parameter attempts to fix it and rerun the leak detection. Windows commands reference/tSpecifies how many CPU threads to use for leak detection. Windows commands reference/sUses the specified as a scratch buffer for the operation. Windows commands referenceTo perform a leak analysis and display detailed output using 5 CPU threads, run this command
refsutil leak D: /a /d /v /t 5Identify/aIf leak detection discovers corruption, this parameter attempts to fix it and rerun the leak detection. Windows commands reference/dOnly performs a diagnosis. Windows commands reference/vEnables verbose output, providing more detailed information. Windows commands reference/tSpecifies how many CPU threads to use for leak detection. Windows commands referenceTo check the amount of space needed for a leak analysis on the D: drive, run this command
refsutil leak D: /qIdentify/qQueries the required space for the leak analysis operation. Windows commands reference<drive>Specifies the drive letter in the format E: or the path to the volume mount point./aIf leak detection discovers corruption, this parameter attempts to fix it and rerun the leak detection. With this parameter enabled, leak detection restarts once for each corrupted directory found on the volume./xOperates with an exclusive lock on the volume. Without this parameter, leak detection creates a snapshot of the volume for processing./vEnables verbose output, providing more detailed information./dOnly performs a diagnosis. Leaks are reported to standard output (stdout) but isn't fixed./qQueries the required space for the leak analysis operation./t <count>Specifies how many CPU threads to use for leak detection. Utilizing more threads speeds up the process on a multi-core CPU. If set to 0, it runs the detection in a single thread (not recommended). The default is 4 threads./s <file>Uses the specified <file> as a scratch buffer for the operation. The <file> must be able to grow to the size reported by the /q parameter. If this parameter is omitted, a scratch buffer is created in the TEMP directory.