2.3.14 FSCTL_FILE_LEVEL_TRIM Reply

This message returns the results of the FSCTL_FILE_LEVEL_TRIM Request (section 2.3.13).

The FILE_LEVEL_TRIM_OUTPUT data element follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

NumRangesProcessed

NumRangesProcessed (4 bytes): A 32-bit unsigned integer identifying the number of input ranges that were processed.

This message returns a status code as specified in section 2.2. Upon success, the status code returned by the function that processes this FSCTL is STATUS_SUCCESS. The most common error codes are listed in the following table.

Error code

Meaning

STATUS_INVALID_PARAMETER

0xC000000D

The given file is compressed or encrypted, or the size of the input buffer is smaller than the size of the FILE_LEVEL_TRIM data element, or no FILE_LEVEL_TRIM_RANGE (section 2.3.13.1) structures were given, or the output buffer is smaller than the size of FILE_LEVEL_TRIM_OUTPUT.

STATUS_INVALID_DEVICE_REQUEST

0xC0000010

The file system does not support this operation.

STATUS_INTEGER_OVERFLOW

0xC0000095

An operation on a parameter in the FSCTL_FILE_LEVEL_TRIM input structure overflowed 64 bits.

STATUS_NO_RANGES_PROCESSED

0xC0000460

The operation was successful, but no range was processed.