mfsRamMediaFormat
Syntax
s32 mfsRamMediaFormat(s32 mode)

Arguments

mode   Format mode

Return value

Error

Function

Formats medium

Description

This function formats the RAM area of the medium to MFS format. The RAM area can be formatted only on a medium for which the disk ID's RAM use is 1. The following values can be specified for mode.

MFS_FORMAT_NORMAL 0 Normal format
MFS_FORMAT_FORCE 1 Forced format

When MFS_FORMAT_NORMAL is specified, a check is performed to determine whether or not the disk is an MFS-format disk. If it is an MFS-format disk, the volume attribute is checked. If the volume attribute indicates that the disk is protected, the disk cannot be formatted. When MFS_FORMAT_FORCE is specified, the disk is formatted without checking whether or not it is an MFS-format disk or checking its attribute.

Main errors

MFS_ERR_NO Normal termination
MFS_ERR_NOTMFSDISK Not an MFS-format disk
The disk ID's disk use is not 1, or the header is different.
MFS_ERR_VERSION Different version MFS-format disk
The version is an unsupported version.
MFS_ERR_PROTECT Write protected disk
The volume attribute is write protected. No error occurs in the case of MFS_FORMAT_FORCE.