io->status = rc;
io->io_errno = EIO;
// We should get here only with Protocol errors, so we should terminate backends, as this is always fatal
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
}
io->status = rc;
/* should get EOD */
DMSG0(ctx, DERROR, "Protocol error, should get EOD.\n");
// In protocol error situations, the communication has no chance to continue, so we need to kill the backend
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
}
/* should get EOD */
DMSG0(ctx, DERROR, "Protocol error, should get EOD.\n");
// In protocol error situations, the communication has no chance to continue, so we need to kill the backend
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
}
readxattr = true;
/* should get EOD */
DMSG0(ctx, DERROR, "Protocol error, should get EOD.\n");
// In protocol error situations, the communication has no chance to continue, so we need to kill the backend
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
}
DMSG(ctx, DERROR, "Protocol error, got unknown command: %s\n", cmd.c_str());
JMSG(ctx, M_FATAL, "Protocol error, got unknown command: %s\n", cmd.c_str());
// In protocol error situations, the communication has no chance to continue, so we need to kill the backend
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
} else {
if (backend.ctx->is_fatal()){
/* error in protocol */
DMSG(ctx, DERROR, "Protocol error, got unknown command: %s\n", cmd.c_str());
JMSG(ctx, M_FATAL, "Protocol error, got unknown command: %s\n", cmd.c_str());
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
} else {
if (backend.ctx->is_fatal()){
DMSG0(ctx, DERROR, "Protocol error, not enough file attributes from backend.\n");
JMSG0(ctx, M_FATAL, "Protocol error, not enough file attributes from backend.\n");
// In protocol error situations, the communication has no chance to continue, so we need to kill the backend
- cancel_all_backends(ctx);
+ backendctx_cancel_func(backend.ctx, ctx);
return bRC_Error;
}