static int exclude_cmd(JCR *jcr)
{
BSOCK *dir = jcr->dir_bsock;
- char *p;
while (bnet_recv(dir) >= 0) {
dir->msg[dir->msglen] = 0;
strip_trailing_junk(dir->msg);
- /* Skip leading options */
- for (p=dir->msg; *p && *p != ' '; p++)
- { }
- /* Skip spaces */
- for ( ; *p && *p == ' '; p++)
- { }
- add_fname_to_exclude_list((FF_PKT *)jcr->ff, p);
- Dmsg1(110, "<dird: exclude file %s\n", dir->msg);
+ add_fname_to_exclude_list((FF_PKT *)jcr->ff, dir->msg);
+ Dmsg1(110, "<dird: exclude file :%s:\n", dir->msg);
}
return bnet_fsend(dir, OKexc);
bnet_fsend(dir, _("3001 Device %s is mounted with Volume %s\n"),
dev->dev_name, dev->VolHdr.VolName);
} else {
- bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"),
+ bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"
+ "Try unmounting and remounting the Volume.\n"),
dev->dev_name);
}
break;
bnet_fsend(dir, _("3001 Device %s is mounted with Volume %s\n"),
dev->dev_name, dev->VolHdr.VolName);
} else {
- bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"),
+ bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"
+ "Try unmounting and remounting the Volume.\n"),
dev->dev_name);
}
} else {
bnet_fsend(dir, _("3001 Device %s is mounted with Volume %s\n"),
dev->dev_name, dev->VolHdr.VolName);
} else {
- bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"),
+ bnet_fsend(dir, _("3905 Device %s open but no Bacula volume is mounted.\n"
+ "Try unmounting and remounting the Volume.\n"),
dev->dev_name);
}
}