#include <lvm_intr.h> BOOLEAN _System Commit_Changes( CARDINAL32 * Error_Code /* (O) Address where the error code will be stored */ );
Parameters
Returns
The return value will be TRUE if all of the partitioning/volume changes made were successfully written to disk. Also, if no errors occur, the value pointed to by Error_Code will be 0 (LVM_ENGINE_NO_ERROR).
If an error occurs, then the return value will be FALSE, and the value pointed to by Error_Code will be non-zero.
Errors
If an error occurs, the value pointed to by Error_Code will be greater than 0.
Disk read and write errors will be indicated by setting the IO_Error field of the Drive_Information_Record to TRUE. Thus, if the function return value is FALSE, and *Error_Code indicates an I/O error, the caller of this function should call the Get_Drive_Status function on each drive to determine which drives had I/O errors.
If a read or write error occurs, then the engine may not have been able to create a partition or volume. Thus, the caller may want to refresh all partition and volume data to see what the engine was and was not able to create.
Side Effects
The partitioning information of the disk drives in the system may be altered.
Notes
None.
16-Bit Equivalent:
BOOLEAN _Far16 _Pascal _loadds COMMIT_CHANGES16( CARDINAL32 * _Seg16 Error_Code );