# mfsHMediaCheck

Format: s32 mfsHMediaCheck(s32 flag)

Arguments: None

Return value:Error

Function: Checks medium

Description: This function checks the status of the drive's medium. It reads the DISK-ID and compares it to determine whether or not the medium has been exchanged. If the medium has been exchanged, this function makes all file handles unavailable, sets the current directory to root, and returns MFS_ERR_DISKCHANGE.

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.
    MFS_ERR_DISKCHANGE 	Media exchanged
    			The media has been replaced by another media.
    If a file is opened, close it and begin the process for opening the file again.
    MFS_ERR_NOTMFSDISK	Not an MFS-format disk
    			The disk ID's disk use is not 1.
    MFS_ERR_VERSION		Different version disk
    MFS_ERR_HEADER		Header error
    			The header area is corrupted.  If it is the RAM area, try to repair it.