*/
bool mark_media_purged(UAContext *ua, MEDIA_DBR *mr)
{
+ char dev_name[MAX_NAME_LENGTH];
JCR *jcr = ua->jcr;
if (strcmp(mr->VolStatus, "Append") == 0 ||
strcmp(mr->VolStatus, "Full") == 0 ||
*/
BSOCK *sd;
if ((sd=open_sd_bsock(ua)) != NULL) {
+ bstrncpy(dev_name, ua->jcr->wstore->dev_name(), sizeof(dev_name));
+ bash_spaces(dev_name);
bash_spaces(mr->VolumeName);
sd->fsend("action_on_purge %s vol=%s action=%d",
ua->jcr->wstore->dev_name(),
goto done;
}
unbash_spaces(volumename.c_str());
+ unbash_spaces(devname.c_str());
/* FIXME: autochanger, drive = 0? how can we avoid that? we only work on
* files