/*
Bacula® - The Network Backup Solution
- Copyright (C) 2005-2010 Free Software Foundation Europe e.V.
+ Copyright (C) 2005-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
/* The device must be mounted in order to dvd-freespace to work */
mount(1);
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
icmd = device->free_space_command;
if (!icmd) {
free_pool_memory(results);
Dmsg4(29, "leave update_freespace: free_space=%s freespace_ok=%d free_space_errno=%d have_media=%d\n",
edit_uint64(free_space, ed1), !!is_freespace_ok(), free_space_errno, !!have_media());
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
return ok;
}
unlink(archive_name.c_str());
dev->set_part_spooled(false);
Dmsg1(29, "========= unlink(%s)\n", archive_name.c_str());
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
return true;
}
dev->clear_freespace_ok(); /* need to update freespace */
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
Dmsg3(29, "dvd_write_part: device is %s, part is %d, is_mounted=%d\n", dev->print_name(), dev->part, dev->is_mounted());
icmd = dev->device->write_part_command;
if (!dev->truncating) {
dcr->mark_volume_in_error();
}
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
return false;
}
Jmsg(dcr->jcr, M_INFO, 0, _("Part %d (%lld bytes) written to DVD.\n"), dev->part, dev->part_size);
unlink(archive_name.c_str());
dev->set_part_spooled(false);
Dmsg1(29, "========= unlink(%s)\n", archive_name.c_str());
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
/* growisofs umounted the device, so remount it (it will update the free space) */
dev->clear_mounted();
dev->mount(1);
Jmsg(dcr->jcr, M_INFO, 0, _("Remaining free space %s on %s\n"),
edit_uint64_with_commas(dev->free_space, ed1), dev->print_name());
- sm_check(__FILE__, __LINE__, false);
+ Dsm_check(400);
return true;
}