rc, attr->ofname);
return CF_ERROR;
}
+ if (rp.create_status == CF_SKIP) {
+ return CF_SKIP;
+ }
if (rp.create_status == CF_ERROR) {
Qmsg1(jcr, M_ERROR, 0, _("Plugin createFile call failed. Returned CF_ERROR file=%s\n"),
attr->ofname);
case 999:
return bRC_Error;
default:
- _JobMessage(M_FATAL, "Invalid internal state %d", state);
+ _JobMessage(M_FATAL, "startBackupFile: invalid internal state %d", state);
state = 999;
}
return retval;
case 999:
retval = bRC_Error;
default:
- _JobMessage(M_FATAL, "Invalid internal state %d", state);
+ _JobMessage(M_FATAL, "endBackupFile: invalid internal state %d", state);
state = 999;
return bRC_Error;
}
root_node_t::createFile(exchange_fd_context_t *context, struct restore_pkt *rp)
{
_DebugMessage(0, "createFile_ROOT state = %d\n", state);
- switch (state)
- {
+ switch (state) {
case 0:
- if (strcmp(name, PLUGIN_PATH_PREFIX_BASE) != 0)
- {
+ if (strcmp(name, PLUGIN_PATH_PREFIX_BASE) != 0) {
_JobMessage(M_FATAL, "Invalid restore path specified, must start with '/" PLUGIN_PATH_PREFIX_BASE "/'\n");
state = 999;
return bRC_Error;
case 1:
rp->create_status = CF_CREATED;
return bRC_OK;
+
+ /* Skip this file */
+ case 900:
+ rp->create_status = CF_SKIP;
+ return bRC_OK;
+ /* Error */
case 999:
return bRC_Error;
default:
- _JobMessage(M_FATAL, "Invalid internal state %d", state);
+ _JobMessage(M_FATAL, "createFile: invalid internal state %d", state);
state = 999;
}
return bRC_Error;
case 1:
return bRC_OK;
default:
- _JobMessage(M_FATAL, "Invalid internal state %d", state);
+ _JobMessage(M_FATAL, "endRestore: invalid internal state %d", state);
state = 999;
}
return bRC_Error;