![]() |
|
| << Previous | Next >> | |
| | |
int mbr_FormatDevice( mbr_dev * dev );
Description
- Creates or rewrites the Master Boot Record on the device given. The routine will only rewrite the Boot Loader code if an MBR already exists on the device. The existing partition table will be preserved. To modify an existing partition table use mbr_CreatePartion.
NOTE This routine is NOT PROTECTED from power loss and can make existing partitions inaccessible if interrupted.
NOTE This function is BLOCKING. Parameters
- dev
- Pointer to MBR device structure
Return value
- 0 for success.
-EEXISTif the MBR exists, writing Boot Loader only
-EIOfor Error trying to read the device or structure
-EINVALif the Device structure is not valid
-ENOMEMif memory for page buffer is not available
-EPERMif drive has mounted or FS enumerated partition(s)Library
- PART.LIB
| Dynamic C Functions | << Previous | Next >> | rabbit.com |