}
}
if (!found) {
- bnet_fsend(ua->UA_sock, _("%s: is an illegal command.\n"), ua->argk[0]);
+ bnet_fsend(ua->UA_sock, _("%s: is an invalid command.\n"), ua->argk[0]);
}
return stat;
}
CLIENT *client;
char buf[1024];
if (!ua->cons || !acl_access_ok(ua, Client_ACL, ua->cons->hdr.name)) {
- bsendmsg(ua, _("Illegal command from this console.\n"));
+ bsendmsg(ua, _("Unauthorized command from this console.\n"));
return 1;
}
LockRes();
}
if (!acl_access_ok(ua, Job_ACL, job->hdr.name)) {
- bsendmsg(ua, _("Illegal command from this console.\n"));
+ bsendmsg(ua, _("Unauthorized command from this console.\n"));
return;
}
job->enabled = setting;
}
}
if (!found) {
- pm_strcat(ua->UA_sock->msg, _(": is an illegal command\n"));
+ pm_strcat(ua->UA_sock->msg, _(": is an invalid command\n"));
ua->UA_sock->msglen = strlen(ua->UA_sock->msg);
bnet_send(ua->UA_sock);
}
if (j >= 0) {
n = atoi(ua->argv[j]);
if ((n < 0) || (n > 50)) {
- bsendmsg(ua, _("Ignoring illegal value for days.\n"));
+ bsendmsg(ua, _("Ignoring invalid value for days. Max is 50.\n"));
n = 1;
}
}
if (i >= 0) {
days = atoi(ua->argv[i]);
if ((days < 0) || (days > 50)) {
- bsendmsg(ua, _("Ignoring illegal value for days.\n"));
+ bsendmsg(ua, _("Ignoring invalid value for days. Max is 50.\n"));
days = 1;
}
}
/* Responses sent to Director */
static char errmsg[] = "2999 Invalid command\n";
static char no_auth[] = "2998 No Authorization\n";
-static char illegal_cmd[] = "2997 Illegal command for a Director with Monitor directive enabled\n";
+static char invalid_cmd[] = "2997 Invalid command for a Director with Monitor directive enabled.\n";
static char OKinc[] = "2000 OK include\n";
static char OKest[] = "2000 OK estimate files=%u bytes=%s\n";
static char OKlevel[] = "2000 OK level\n";
break;
}
if ((jcr->authenticated) && (!cmds[i].monitoraccess) && (jcr->director->monitor)) {
- Dmsg1(100, "Command %s illegal.\n", cmds[i].cmd);
- bnet_fsend(dir, illegal_cmd);
+ Dmsg1(100, "Command \"%s\" is invalid.\n", cmds[i].cmd);
+ bnet_fsend(dir, invalid_cmd);
bnet_sig(dir, BNET_EOD);
break;
}
break;
}
if (!found) {
- Pmsg1(0, _("\"%s\" is an illegal command\n"), cmd);
+ Pmsg1(0, _("\"%s\" is an invalid command\n"), cmd);
}
}
}
/* Static variables */
static char derrmsg[] = "3900 Invalid command\n";
static char OKsetdebug[] = "3000 OK setdebug=%d\n";
-static char illegal_cmd[] = "3997 Illegal command for a Director with Monitor directive enabled\n";
+static char invalid_cmd[] = "3997 Invalid command for a Director with Monitor directive enabled.\n";
/* Imported functions */
extern void terminate_child();
for (i=0; cmds[i].cmd; i++) {
if (strncmp(cmds[i].cmd, bs->msg, strlen(cmds[i].cmd)) == 0) {
if ((!cmds[i].monitoraccess) && (jcr->director->monitor)) {
- Dmsg1(100, "Command %s illegal.\n", cmds[i].cmd);
- bnet_fsend(bs, illegal_cmd);
+ Dmsg1(100, "Command \"%s\" is invalid.\n", cmds[i].cmd);
+ bnet_fsend(bs, invalid_cmd);
bnet_sig(bs, BNET_EOD);
break;
}
{
BSR *bsr;
BSR *found_bsr = NULL;
- bool no_file_seek = !dev->is_tape();
-#ifdef FILE_SEEK
- no_file_seek = false;
-#endif
+ /* Do tape/disk seeking only if CAP_POSITIONBLOCKS is on */
if (!root_bsr || !root_bsr->use_positioning ||
- !root_bsr->reposition || no_file_seek) {
+ !root_bsr->reposition || !dev->has_cap(CAP_POSITIONBLOCKS)) {
Dmsg2(dbglevel, "No nxt_bsr use_pos=%d repos=%d\n", root_bsr->use_positioning, root_bsr->reposition);
return NULL;
}
* when find_next_bsr() is fixed not to return a bsr already
* completed.
*/
-#ifdef xxx
if (dev->file > bsr->volfile->sfile ||
(dev->file == bsr->volfile->sfile && dev->block_num > bsr->volblock->sblock)) {
return false;
}
-#endif
if (verbose) {
Jmsg(jcr, M_INFO, 0, _("Reposition from (file:block) %u:%u to %u:%u\n"),
dev->file, dev->block_num, bsr->volfile->sfile,
General:
03Dec06
+kes Enable disk seeking on restore.
+kes Implement the SD 'Block Positioning = yes|no' directive. This
+ allows the user to turn off block level seeking, but restores
+ will be much slower.
+kes Change the word illegal to read invalid in a few places.
kes Fix Win32 build, which broke when I added parse_args_only in
lib. I'm not sure I got the entry point right for msvc.
kes Turn off data encryption. It can be enabled by defining