s32 mfsRamRepairHeader(void)
Arguments
Return value
Function
Description
This function tries to repair the RAM area header. File and directory information is recorded in the header area, and this information may become damaged when inserting or removing the disk. If this occurs, an MFS_ERR_HEADER, or LEO_ERROR_UNRECOVERD_READ_ERROR error (due to MFS_ERR_DEVICE) is issued by mfsHMediaCheck or mfsR*mMediaCheck. If these errors are issued, try to repair the header area by writing a copy of the header area back to the disk using this function.
Main errors
MFS_ERR_NO | Normal termination |
MFS_ERR_DEVICE | Device error
An error occurred in an internally called Leo function. Since a Leo function error is stored in the variable mfsError, check this variable to perform processing. |