bRC
dbi_node_t::createFile(exchange_fd_context_t *context, struct restore_pkt *rp)
{
- _ DebugMessage(100, "createFile_DBI state = %d\n", state);
+ _DebugMessage(100, "createFile_DBI state = %d\n", state);
rp->create_status = CF_EXTRACT;
bRC
dbi_node_t::endRestoreFile(exchange_fd_context_t *context)
{
- _ DebugMessage(100, "endRestoreFile_DBI state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_DBI state = %d\n", state);
context->current_node = parent;
{
//HrESERestoreOpenFile with name of log file
- _ DebugMessage(100, "createFile_FILE state = %d\n", state);
+ _DebugMessage(100, "createFile_FILE state = %d\n", state);
rp->create_status = CF_EXTRACT;
return bRC_OK;
}
bRC
file_node_t::endRestoreFile(exchange_fd_context_t *context)
{
- _ DebugMessage(100, "endRestoreFile_FILE state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_FILE state = %d\n", state);
context->current_node = parent;
return bRC_OK;
}
char *tmp = new char[wcslen(filename) + 1];
wcstombs(tmp, filename, wcslen(filename) + 1);
- _ DebugMessage(100, "pluginIoOpen_FILE - filename = %s\n", tmp);
+ _DebugMessage(100, "pluginIoOpen_FILE - filename = %s\n", tmp);
io->status = 0;
io->io_errno = 0;
if (context->job_type == JOB_TYPE_BACKUP)
bRC
root_node_t::createFile(exchange_fd_context_t *context, struct restore_pkt *rp)
{
- _ DebugMessage(100, "createFile_ROOT state = %d\n", state);
+ _DebugMessage(100, "createFile_ROOT state = %d\n", state);
switch (state) {
case 0:
if (strcmp(name, PLUGIN_PATH_PREFIX_BASE) != 0) {
bRC
root_node_t::endRestoreFile(exchange_fd_context_t *context)
{
- _ DebugMessage(100, "endRestoreFile_ROOT state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_ROOT state = %d\n", state);
switch (state) {
case 0:
delete service_node;
{
storage_group_node_t *curr_sg, *prev_sg;
- _ DebugMessage(100, "createFile_SERVICE state = %d\n", state);
+ _DebugMessage(100, "createFile_SERVICE state = %d\n", state);
if (strcmp(name, "Microsoft Information Store") != 0)
{
_JobMessage(M_FATAL, "Invalid restore path specified, must start with '/" PLUGIN_PATH_PREFIX_BASE "/" PLUGIN_PATH_PREFIX_SERVICE "/'\n", state);
bRC
service_node_t::endRestoreFile(exchange_fd_context_t *context)
{
- _ DebugMessage(100, "endRestoreFile_SERVICE state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_SERVICE state = %d\n", state);
switch(state)
{
case 0:
HRESULT result;
int len;
- _ DebugMessage(100, "createFile_STORAGE_GROUP state = %d\n", state);
+ _DebugMessage(100, "createFile_STORAGE_GROUP state = %d\n", state);
if (strcmp(context->path_bits[level], name) != 0)
{
- _ DebugMessage(100, "Different storage group - switching back to parent\n", state);
+ _DebugMessage(100, "Different storage group - switching back to parent\n", state);
saved_log_path = new WCHAR[wcslen(restore_environment->m_wszRestoreLogPath) + 1];
wcscpy(saved_log_path, restore_environment->m_wszRestoreLogPath);
_DebugMessage(100, "Calling HrESERestoreSaveEnvironment\n");
}
if (saved_log_path != NULL)
{
- _ DebugMessage(100, "Calling HrESERestoreReopen\n");
+ _DebugMessage(100, "Calling HrESERestoreReopen\n");
result = HrESERestoreReopen(context->computer_name, service_name, saved_log_path, &hccx);
if (result != 0)
{
rp->create_status = CF_CREATED;
return bRC_OK;
}
- _ DebugMessage(100, "Calling HrESERestoreGetEnvironment\n");
+ _DebugMessage(100, "Calling HrESERestoreGetEnvironment\n");
result = HrESERestoreGetEnvironment(hccx, &restore_environment);
if (result != 0)
{
storage_group_name = new WCHAR[strlen(name) + 1];
mbstowcs(service_name, parent->name, strlen(parent->name) + 1);
mbstowcs(storage_group_name, name, strlen(name) + 1);
- _ DebugMessage(100, "Calling HrESERestoreOpen\n");
+ _DebugMessage(100, "Calling HrESERestoreOpen\n");
result = HrESERestoreOpen(context->computer_name, service_name, storage_group_name, NULL, &hccx);
if (result != 0)
{
state = 999;
break;
}
- _ DebugMessage(100, "Calling HrESERestoreGetEnvironment\n");
+ _DebugMessage(100, "Calling HrESERestoreGetEnvironment\n");
result = HrESERestoreGetEnvironment(hccx, &restore_environment);
if (result != 0)
{
bRC
storage_group_node_t::endRestoreFile(exchange_fd_context_t *context)
{
- _ DebugMessage(100, "endRestoreFile_STORAGE_GROUP state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_STORAGE_GROUP state = %d\n", state);
switch (state)
{
case 0:
bRC
store_node_t::createFile(exchange_fd_context_t *context, struct restore_pkt *rp)
{
- _ DebugMessage(100, "createFile_STORE state = %d\n", state);
+ _DebugMessage(100, "createFile_STORE state = %d\n", state);
if (strcmp(context->path_bits[level - 1], parent->name) != 0)
{
- _ DebugMessage(100, "Different storage group - switching back to parent\n", state);
+ _DebugMessage(100, "Different storage group - switching back to parent\n", state);
context->current_node = parent;
return bRC_OK;
}
case 999:
if (strcmp(context->path_bits[level], name) != 0)
{
- _ DebugMessage(100, "End of Store when in error state - switching back to parent\n", state);
+ _DebugMessage(100, "End of Store when in error state - switching back to parent\n", state);
context->current_node = parent;
return bRC_OK;
}
{
HRESULT result;
- _ DebugMessage(100, "endRestoreFile_STORE state = %d\n", state);
+ _DebugMessage(100, "endRestoreFile_STORE state = %d\n", state);
for (;;)
{
switch (state)
{
case 0:
state = 1;
- _ DebugMessage(100, "Calling HrESERestoreAddDatabase\n");
+ _DebugMessage(100, "Calling HrESERestoreAddDatabase\n");
result = HrESERestoreAddDatabase(hccx, dbi_node->restore_display_name, dbi_node->restore_guid, dbi_node->restore_input_streams, &dbi_node->restore_output_streams);
if (result != 0)
{