static bool setdebug_cmd(JCR *jcr)
{
BSOCK *dir = jcr->dir_bsock;
- int level, trace_flag;
+ int32_t level, trace_flag;
Dmsg1(10, "setdebug_cmd: %s", dir->msg);
if (sscanf(dir->msg, "setdebug=%d trace=%d", &level, &trace_flag) != 2 || level < 0) {
DCR *dcr;
DEVICE *dev;
bool ok = false;
- int slot;
- int drive;
+ int32_t slot, drive;
newname = get_memory(dir->msglen+1);
oldname = get_memory(dir->msglen+1);
BSOCK *dir = jcr->dir_bsock;
DEVICE *dev;
DCR *dcr;
- int drive;
- int slot = 0;
+ int32_t drive;
+ int32_t slot = 0;
bool ok;
ok = sscanf(dir->msg, "mount %127s drive=%d slot=%d", devname.c_str(),
if (!ok) {
ok = sscanf(dir->msg, "mount %127s drive=%d", devname.c_str(), &drive) == 2;
}
+ Dmsg3(100, "ok=%d drive=%d slot=%d\n", ok, drive, slot);
if (ok) {
dcr = find_device(jcr, devname, drive);
if (dcr) {
BSOCK *dir = jcr->dir_bsock;
DEVICE *dev;
DCR *dcr;
- int drive;
+ int32_t drive;
if (sscanf(dir->msg, "unmount %127s drive=%d", devname.c_str(), &drive) == 2) {
dcr = find_device(jcr, devname, drive);
char devname[MAX_NAME_LENGTH];
char volumename[MAX_NAME_LENGTH];
- int action;
+ int32_t action;
/* TODO: Need to find a free device and ask for slot to the director */
if (sscanf(dir->msg,
BSOCK *dir = jcr->dir_bsock;
DEVICE *dev;
DCR *dcr;
- int drive;
+ int32_t drive;
if (sscanf(dir->msg, "release %127s drive=%d", devname.c_str(), &drive) == 2) {
dcr = find_device(jcr, devname, drive);
BSOCK *dir = jcr->dir_bsock;
DEVICE *dev;
DCR *dcr;
- int Slot;
- int drive;
+ int32_t Slot, drive;
if (sscanf(dir->msg, "readlabel %127s Slot=%d drive=%d", devname.c_str(),
&Slot, &drive) == 3) {