)\r
;\r
\r
-/**\r
- Reclaim the work space. Get rid of all the completed write records\r
- and write records in the Fault Tolerant work space.\r
-\r
-\r
- @param FtwLiteDevice Point to private data of FTW driver\r
- FtwSpaceBuffer - Buffer to contain the reclaimed clean data\r
- @param BlockBuffer The data buffer for the block.\r
- @param BufferSize Size of the FtwSpaceBuffer\r
-\r
- @retval EFI_SUCCESS The function completed successfully\r
- @retval EFI_BUFFER_TOO_SMALL The FtwSpaceBuffer is too small\r
- @retval EFI_ABORTED The function could not complete successfully.\r
-\r
-**/\r
-EFI_STATUS\r
-CleanupWorkSpace (\r
- IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,\r
- IN OUT UINT8 *BlockBuffer,\r
- IN UINTN BufferSize\r
- )\r
-;\r
-\r
/**\r
Reclaim the work space on the working block.\r
\r
\r
@param FtwLiteDevice Point to private data of FTW driver\r
+ @param PreserveRecord Whether to preserve the working record is needed\r
\r
@retval EFI_SUCCESS The function completed successfully\r
@retval EFI_OUT_OF_RESOURCES Allocate memory error\r
**/\r
EFI_STATUS\r
FtwReclaimWorkSpace (\r
- IN EFI_FTW_LITE_DEVICE *FtwLiteDevice\r
+ IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,\r
+ IN BOOLEAN PreserveRecord\r
)\r
;\r
\r