if (mount_dvd(this, 1)) {
Dmsg0(99, "DVD device mounted.\n");
- if ((num_dvd_parts == 0) && (!truncating)) {
-#ifdef needed
+ if (num_dvd_parts == 0 && !truncating) {
/*
* If we can mount the device, and we are not truncating the DVD,
* we usually want to abort. There is one exception, if there is
clear_opened();
return;
}
-#endif
truncated_dvd = true;
}
} else {
int status;
part = num_dvd_parts;
- Dmsg3(100, "Remove empty part in close call make_dvd_filename. part=%d num=%d vol=%s\n",
- part, num_dvd_parts, VolCatInfo.VolCatName);
make_spooled_dvd_filename(this, archive_name);
/* Check that the part file is empty */
status = stat(archive_name.c_str(), &statp);
if (status == 0 && statp.st_size == 0) {
+ Dmsg3(100, "Unlink empty part in close call make_dvd_filename. part=%d num=%d vol=%s\n",
+ part, num_dvd_parts, VolCatInfo.VolCatName);
Dmsg1(100, "unlink(%s)\n", archive_name.c_str());
unlink(archive_name.c_str());
set_part_spooled(false); /* no spooled part left */