NDSSYSVolumeRecovery

Restores the data backed up in the servedata.nds file to the server.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM
Service:NDS

Syntax

    #include <ndsback.h> 
     
    int NDSSYSVolumeRecovery  ( 
      void  *(*memAlloc)(unsigned size),   
      void   (*memFree)(void *p));
    

Parameters

memAlloc
(IN) Points to the address of the function to use to allocate memory.
memFree
(IN) Points to the address of the function to use to free memory allocated with the memAlloc parameter.

Return Values

0x0000

SUCCESSFUL

Nonzero

Nonzero values indicate errors. See NDS Return Values (001 to 799).

Remarks

This function is an exported symbol from the DSBACKER NLM. To use it, you will need to create an import file.

This function uses the servdata.nds file created by the NDSBackupServerData function. The NDSSYSVolumeRecovery function expects the file to be in the Sys:system directory.

If the server stored a master partition, another partition should be designated as the master partition before using this function. Also, the server needs to be removed from all replica lists so that it appears as if it stores no replicas.

NCP Calls

See Also

NDSBackupServerData